Пример #1
0
 public ActionResult EditUserName(UserNameModel userNameModel)
 {
     try
     {
         dal.EditUserName(userNameModel);
         Session["message"]       = "User Name is successfully edited";
         Session["requestStatus"] = "Success";
         return(RedirectToAction("Index"));
     }
     catch
     {
         Session["message"]       = "Unable to perform this request";
         Session["requestStatus"] = "Error";
         return(RedirectToAction("Index"));
     }
 }