Esempio n. 1
0
 public ActionResult SaveUserDetails(CustomUserDetailsEditModel model)
 {
     try
     {
         var m = _secretSantaBl.SaveUserDetails(model);
         m.Saved = true;
         return(PartialView("_UserDetails", m));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("", ex.Message);
         //_log.LogWarning(ex.Message);
     }
     return(PartialView("_UserDetails", model));
 }