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(); } }
public void EditQty(InvenStoreStatusDto DTO) { DAL.EditQty(DTO); }
public void Add(InvenStoreStatusDto DTO) { DAL.Add(DTO); }