int Total = clients.Count(); if (Total == 1) { return View("Edit", clients); } else { clients = clients.Skip((page - 1) * rp).Take(rp); var flexgrid = new { page = page, total = Total, rows = clients .Select(x => new { id = x.Id, cell = new { Id = x.Id, Number = x.Number, Name = x.Name, Contact1 = x.Contact1.Contact ?? String.Empty } } ) }; return Json(flexgrid, JsonRequestBehavior.AllowGet); } }So, the idea is to go directly to the Edit view if the search returns only 1 row. I put a breakpoint on the return view('Edit', clients) line. After that line is hit, nothing happens. The Edit view is not opened.