Example #1
0
 public ActionResult Edit(MenusModel model)
 {
     if (model.Edit())
     {
         return(Json(new JavaScriptSerializer().Serialize(model)));
     }
     return(Content("-1"));
 }
Example #2
0
 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"));
 }