public Task <int> Handle(CreateProductAsync input) { var product = new Product(new CreateProduct { Name = input.Name, Price = input.Price }); _unitOfWork.Add(product); #warning CommitAsync _unitOfWork.Commit(); return(Task.FromResult(product.Id)); }
public async Task <IActionResult> CreateAsync(CreateProductAsync command) => await this.ProcessAsync(command);