Exemple #1
0
        public ActionResult AjaxView()
        {
            var customerType = _menuGroupsDa.GetById(ArrId.FirstOrDefault());

            ViewData.Model = customerType;
            return(View());
        }
Exemple #2
0
 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));
     }
 }