public ActionResult Edit(MenusModel model) { if (model.Edit()) { return(Json(new JavaScriptSerializer().Serialize(model))); } return(Content("-1")); }
public ActionResult Edit(MenusModel model) { model.sesion = SessionDB.start(Request, Response, false, model.db, SESSION_BEHAVIOR.AJAX); if (model.sesion == null) { return(Content(string.Empty)); } if (model.Edit()) { model.Dispose(); return(Json(new JavaScriptSerializer().Serialize(model))); } return(Content("-1")); }