public ActionResult AjaxView() { var customerType = _menuGroupsDa.GetById(ArrId.FirstOrDefault()); ViewData.Model = customerType; return(View()); }
public ActionResult Update(string key) { try { if (key != Keyapi) { return(Json(0, JsonRequestBehavior.AllowGet)); } var model = _da.GetById(ItemId); UpdateModel(model); _da.Save(); return(Json(1, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(0, JsonRequestBehavior.AllowGet)); } }