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

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

            _recursoTarefaAppService.Remover(id);

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

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