예제 #1
0
        public override Task <RemoveResponse> Remove(RemoveRequest request, ServerCallContext context)
        {
            var response = new RemoveResponse();

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

            return(new boolResponse
            {
                Code = 1000,
                Data = result
            });
        }