public DeleteUserResponse DeleteUser(DeleteUserRequest request) { var response = new DeleteUserResponse { ResponseStatus = ResponseStatus.Success }; var usersProvider = new UsersProvider(); try { if (request.ActionType == ActionType.Delete) { response.isSuccessful = usersProvider.DeleteUser(request); } else { response.ResponseStatus = ResponseStatus.Failure; response.ResponseDescription = "Not update action"; } } catch (Exception ex) { response.ResponseStatus = ResponseStatus.Failure; response.ResponseDescription = ex.Message; } return(response); }
public async Task <ResponseViewModel <bool> > DeleteUser(int userId) { var data = new ResponseViewModel <bool> { Data = await _usersProvider.DeleteUser(userId) }; return(data); }
public bool DeleteUser(uint id) { bool Success = false; try { Success = UsersProvider.DeleteUser(id); } catch { } return(Success); }
public static bool RemoveUser(string userID) { return(UsersProvider.DeleteUser(userID)); }