Exemple #1
0
 public ActionResult ChangePass(ChangePassView model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             if (_staffBusiness.ChangePass(model))
             {
                 _staffBusiness.Save();
                 return(Redirect("/Dashboard/Dashboard"));
             }
         }
         return(View());
     }
     catch (Exception)
     {
         return(View());
     }
 }