Exemplo n.º 1
0
        public IDtoResult HandleAdd(AddLancheCommand command)
        {
            var lanche = new LancheEntity(command.Nome, command.Valor);

            _repository.Add(lanche);

            return(lanche.ToDto());
        }