Пример #1
0
 public void Update(ProductBase obj)
 {
     _ctx.sp_UpdateProduct(obj.Id, obj.AvailableAmount);
 }
Пример #2
0
 public void Delete(ProductBase obj)
 {
     _ctx.sp_DeleteProduct(obj.Id);
 }
Пример #3
0
 public void Create(ProductBase obj)
 {
     _ctx.sp_InsertProduct(obj.Id, obj.Name, obj.SupplierId, obj.Price, obj.AvailableAmount);
 }
Пример #4
0
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
Пример #5
0
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
Пример #6
0
 public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product)
 {
     Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id));
 }