public long Add(Dress entity)
 {
     entity.Id = DateTime.Now.Ticks;
     _DressBookingDBContext.Dresses.Add(entity);
     if (!entity.IsCopy)
     {
         _ds = DressesStorage.Instance(this);
         _ds.AddDressToCache(entity);
     }
     _DressBookingDBContext.SaveChanges();
     return(entity.Id);
 }
 public long Add(Order entity)
 {
     if (entity.Booking)
     {
         _orderProcessingContext.SetOrderProcessing(bookingOrder);
     }
     else
     {
         _orderProcessingContext.SetOrderProcessing(buyOrder);
     }
     _orderProcessingContext.OrderProcess(entity);
     entity.Id = DateTime.Now.Ticks;
     _DressBookingDBContext.Orders.Add(entity);
     _DressBookingDBContext.SaveChanges();
     return(entity.Id);
 }