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