コード例 #1
0
        public bool Alterar(AlterarTarefaRequest tarefa)
        {
            try
            {
                _alterarTarefaRequestValidator.ValidateAndThrow(tarefa);

                _tarefaRepository.Alterar(_tarefaAdapter.ConverteAlterarTarefaRequestParaTarefa(tarefa));
                return(true);
            }
            catch (ValidationException exv)
            {
                throw new ValidationException(exv.Errors);
            }
        }