示例#1
0
        public IActionResult RegistrarTarefa(TarefaViewModel tarefaViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response <TarefaViewModel>(tarefaViewModel));
            }

            _tarefaAppService.Register(tarefaViewModel);

            return(Response <TarefaViewModel>(tarefaViewModel));
        }