public POs CreatePO(POs PO) { var dbPO = purchaseOrderRepository.Insert(PO.AutoMapObject <POs, DB.POs>()); return(dbPO.AutoMapObject <DB.POs, POs>()); }
public void EditPO(POs PO) { var original = purchaseOrderRepository.GetById(p => p.PoId == PO.PoId); purchaseOrderRepository.Update(original, PO.AutoMapObject <POs, DB.POs>()); }
public int CreatePO(POs pOs) { var res = pORepository.Insert(pOs.AutoMapObject <POs, DB.POs>()); return(res.PoId); }