예제 #1
0
        public override async Task <TipoTarefaModel> Consultar(BaseRequest request, ServerCallContext context)
        {
            Guid            id     = new Guid(request.Id);
            TipoTarefaModel result = _mapper.Map <TipoTarefaModel>(_tipoTarefaAppService.Consultar(id));

            return(await Task.FromResult(result));
        }
예제 #2
0
 public override async Task <BaseReply> Alterar(TipoTarefaModel request, ServerCallContext context)
 {
     return(await Task.FromResult(new BaseReply
     {
         Sucesso = _tipoTarefaAppService.Alterar(_mapper.Map <TipoTarefaViewModel>(request))
     }));
 }
예제 #3
0
 public override async Task <BaseReply> Incluir(TipoTarefaModel request, ServerCallContext context)
 {
     return(await Task.FromResult(new BaseReply
     {
         Id = _tipoTarefaAppService.Incluir(_mapper.Map <TipoTarefaViewModel>(request)).ToString()
     }));
 }