public void Update(ProductBase obj) { _ctx.sp_UpdateProduct(obj.Id, obj.AvailableAmount); }
public void Delete(ProductBase obj) { _ctx.sp_DeleteProduct(obj.Id); }
public void Create(ProductBase obj) { _ctx.sp_InsertProduct(obj.Id, obj.Name, obj.SupplierId, obj.Price, obj.AvailableAmount); }
public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product) { NotifyOrderChangedState(customer, product, "Processing"); }
public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state) { Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state)); }
public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product) { Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id)); }