示例#1
0
        public POs CreatePO(POs PO)
        {
            var dbPO = purchaseOrderRepository.Insert(PO.AutoMapObject <POs, DB.POs>());

            return(dbPO.AutoMapObject <DB.POs, POs>());
        }
示例#2
0
        public void EditPO(POs PO)
        {
            var original = purchaseOrderRepository.GetById(p => p.PoId == PO.PoId);

            purchaseOrderRepository.Update(original, PO.AutoMapObject <POs, DB.POs>());
        }
示例#3
0
        public int CreatePO(POs pOs)
        {
            var res = pORepository.Insert(pOs.AutoMapObject <POs, DB.POs>());

            return(res.PoId);
        }