public override Task <RemoveResponse> Remove(RemoveRequest request, ServerCallContext context) { var response = new RemoveResponse(); response.Code = 1000; response.Data = true; return(Task.FromResult(response)); }
public override async Task <boolResponse> Remove(RemoveRequest request, ServerCallContext context) { var result = await _userRepository.RemoveAsync(request.UserId); return(new boolResponse { Code = 1000, Data = result }); }