Beispiel #1
0
 public override async Task <BaseReply> Remover(BaseRequest request, ServerCallContext context)
 {
     return(await Task.FromResult(new BaseReply
     {
         Sucesso = _impedimentoTarefaAppService.Remover(new Guid(request.Id))
     }));
 }
        public IActionResult Delete(Guid id)
        {
            ImpedimentoTarefaViewModel obj = _impedimentoTarefaAppService.Consultar(id);

            if (obj == null)
            {
                return(NotFound());
            }

            _impedimentoTarefaAppService.Remover(id);

            return(NoContent());
        }
Beispiel #3
0
        public IActionResult OnPost()
        {
            _impedimentoTarefaAppService.Remover(ImpedimentoTarefa.Id);

            return(RedirectToPage("Listar", new { idTarefa = ImpedimentoTarefa.IdTarefa }));
        }