private void Update(Domain.Product product, UpsertProductModel model) { product.Update(model.Name, model.Price, model.Pieces); repository.Update(product); repository.Save(); }
public AddProductCommand(UpsertProductModel model) { Model = model; }