예제 #1
0
 public ActionResult Edit(SouvenirViewModel model)
 {
     if (ModelState.IsValid)
     {
         model.Update_By = User.Identity.Name;
         ResultResponse result = SouvenirRepo.Update(model);
         return(Json(new
         {
             success = result.Success,
             message = result.Message
         }, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(new
         {
             success = false,
             message = "A required column is still blank, Please fill correctly",
         }, JsonRequestBehavior.AllowGet));
     }
 }