示例#1
0
 public Task <Result> UpdateUserLogin(int pkUid, UserLoginModel model)
 {
     try
     {
         if (pkUid < 0)
         {
             return(Task.FromResult(ResultMessage.Error(Constants.IsNullValue)));
         }
         _userLoginService.Update(pkUid, model);
         return(Task.FromResult(ResultMessage.Success(Constants.UpdateSuccess)));
     }
     catch (Exception ex)
     {
         return(Task.FromResult(ResultMessage.ExceptionError(ex)));
     }
 }