public void Add(InvenCentralPurRequisitonDTO DTO) { using (var container = new InventoryContainer()) { InvenCentralPurRequisition inreo = new InvenCentralPurRequisition(); container.InvenCentralPurRequisitions.AddObject((InvenCentralPurRequisition)DTOMapper.DTOObjectConverter(DTO, inreo)); container.SaveChanges(); } }
public void Edit_PurRequsitionStatus(InvenCentralPurRequisitonDTO DTO) { using (var container = new InventoryContainer()) { var Comp = new InvenCentralPurRequisition(); Comp = container.InvenCentralPurRequisitions.FirstOrDefault(o => o.CenPurReqId.Equals(DTO.CenPurReqId)); Comp.CenPurReqId = DTO.CenPurReqId; Comp.PurReqStatus = DTO.PurReqStatus; Comp = (InvenCentralPurRequisition)DTOMapper.DTOObjectConverter(DTO, Comp); container.SaveChanges(); } }
public void Edit(InvenCentralPurRequisitonDTO DTO) { using (var container = new InventoryContainer()) { var Comp = new InvenCentralPurRequisition(); Comp = container.InvenCentralPurRequisitions.FirstOrDefault(o => o.CenPurReqId.Equals(DTO.CenPurReqId)); Comp.PurReqStatus = DTO.PurReqStatus; Comp.RequisitionBy = DTO.RequisitionBy; Comp.Quantity = DTO.Quantity; Comp.RequisitionDate = DTO.RequisitionDate; Comp.RequisitionNo = DTO.RequisitionNo; Comp.UnitPrice = DTO.UnitPrice; Comp.Priority = DTO.Priority; Comp = (InvenCentralPurRequisition)DTOMapper.DTOObjectConverter(DTO, Comp); container.SaveChanges(); } }
public void Edit_PurRequsitionStatus(InvenCentralPurRequisitonDTO DTO) { DAL.Edit_PurRequsitionStatus(DTO); }
public void Edit(InvenCentralPurRequisitonDTO DTO) { DAL.Edit(DTO); }
public void Add(InvenCentralPurRequisitonDTO DTO) { DAL.Add(DTO); }