示例#1
0
        public async Task <AddExampleOutput> ExecuteAsync(AddExampleInput input)
        {
            var newExample = new Example(input.ExampleString, input.ExampleBoolean, input.ExampleInt);

            await exampleRepository.AddAsync(newExample);

            await exampleRepository.UnitOfWork.SaveChangesAsync();

            return(new AddExampleOutput(newExample));
        }