public ByARpt Update(vEP_PAA Reg) { cmdUpdate o = new cmdUpdate(); o.oDto = Reg; ByARpt res = o.Enviar(); return res; }
public ByARpt Insert(vEP_PAA Reg) { cmdInsert o = new cmdInsert(); o.oDto = Reg; ByARpt res = o.Enviar(); return res; }
public vEP_PAA Get(int ID, string CodDep, int Vigencia) { using (ctx = new Entities()) { EP_PAA obj = ctx.EP_PAA.Where(t => t.ID == ID && t.VIGENCIA == Vigencia && t.COD_DEP == CodDep).FirstOrDefault(); if (obj == null) return null; else { vEP_PAA Robj = new vEP_PAA(); Mapper.Map(obj, Robj); return Robj; } } }
public vEP_PAA Get2(int ID) { using (ctx = new Entities()) { EP_PAA obj = ctx.EP_PAA.Where(t => t.ID == ID).FirstOrDefault(); if (obj == null) return null; else { vEP_PAA Robj = new vEP_PAA(); Mapper.Map(obj, Robj); Robj.lCODIGOS_UNSPSC = GetProductosPAA(Robj.ID); return Robj; } } }
public ByARpt Update(vEP_PAA Reg) { PaaBLL obj = new PaaBLL(); return obj.Update(Reg); }
public ByARpt Insert(vEP_PAA Reg) { PaaBLL obj = new PaaBLL(); return obj.Insert(Reg); }