Exemple #1
0
 public bool ChangePassWord(AccountModel obj)
 {
     bool result = false;
     try
     {
         var sp_result = db.ChangePassword(obj.UserName, obj.PasswordOld, obj.PasswordNew);
         if (sp_result.FirstOrDefault().Updated == 1)
             result = true;
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return result;
 }