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