public async Task <CoffeePlaceResponse> Execute(CreateCoffeePlaceCommand command) { var coffeePlace = await _coffeePlaceService .Create(command); await Commit(); return(new CoffeePlaceResponse(coffeePlace)); }
public async Task <CoffeePlace> Create(CreateCoffeePlaceCommand command) { var coffeePlace = new CoffeePlace(command); await _coffeePlaceRepository .AddAsync(coffeePlace); return(coffeePlace); }
public CoffeePlace(CreateCoffeePlaceCommand command) : this() { Name = command.Name; }