public void Add(InvenStoreStatusDto DTO)
 {
     using (var container = new InventoryContainer())
     {
         InvenStoreStatu ino = new InvenStoreStatu();
         container.InvenStoreStatus.AddObject((InvenStoreStatu)DTOMapper.DTOObjectConverter(DTO, ino));
         container.SaveChanges();
     }
 }
        public void EditQty(InvenStoreStatusDto DTO)
        {
            using (var container = new InventoryContainer())
            {
                var Comp = new InvenStoreStatu();
                Comp = container.InvenStoreStatus.FirstOrDefault(o => o.InvenStoreId.Equals(DTO.InvenStoreId));
                Comp.InvenStoreId         = DTO.InvenStoreId;
                Comp.ProductId            = DTO.ProductId;
                Comp.QuantityStore        = DTO.QuantityStore;
                Comp.QuantityLastPurchase = DTO.QuantityLastPurchase;

                Comp.DateUpdated      = DTO.DateUpdated;
                Comp.QuantityPurchase = DTO.QuantityPurchase;
                Comp = (InvenStoreStatu)DTOMapper.DTOObjectConverter(DTO, Comp);
                container.SaveChanges();
            }
        }
Example #3
0
 public void EditQty(InvenStoreStatusDto DTO)
 {
     DAL.EditQty(DTO);
 }
Example #4
0
 public void Add(InvenStoreStatusDto DTO)
 {
     DAL.Add(DTO);
 }