// GET: Nav/Delete/5 public ActionResult Delete(string id) { _navService.Delete(a => a.NavId == id); var redirectUrl = new UrlHelper(Request.RequestContext).Action("Index", "Nav"); return(Json(new { Url = redirectUrl }, JsonRequestBehavior.AllowGet)); }