コード例 #1
0
 public Task <Result> DeleteUserLogin(int pkUid)
 {
     try
     {
         if (pkUid <= 0)
         {
             return(Task.FromResult(ResultMessage.Error(Constants.IsNullValue)));
         }
         _userLoginService.Delete(pkUid);
         return(Task.FromResult(ResultMessage.Success(Constants.DeleteSuccess)));
     }
     catch (Exception ex)
     {
         return(Task.FromResult(ResultMessage.ExceptionError(ex)));
     }
 }