public comum_dto.Compartilhamento Request(CompartilharRequest request) { return(new comum_dto.Compartilhamento() { PostId = request.PostId }); }
public override Task <BaseResponse> Compartilhar(CompartilharRequest request, ServerCallContext context) { var response = new BaseResponse(); try { var parser = new CompartilhamentoCompartilhar(); var r = parser.Request(request); compartilhamentoServico.Compartilhar(r); } catch (Exception ex) { response.HttpStatusCode = (int)HttpStatusCode.InternalServerError; } return(Task.FromResult(response)); }