public vPL_PLANTILLA Get(decimal ID) { using (ctx = new Entities()) { vPL_PLANTILLA r = new vPL_PLANTILLA(); PL_PLANTILLA b = ctx.PL_PLANTILLA.Where(t => t.ID == ID).FirstOrDefault(); Mapper.Map(b, r); return r; } }
public ByARpt Update(vPL_PLANTILLA Reg) { cmdUpdate o = new cmdUpdate(); o.oDto = Reg; return o.Enviar(); }
public ByARpt Insert(vPL_PLANTILLA Reg) { cmdInsert o = new cmdInsert(); o.oDto = Reg; return o.Enviar(); }
public ByARpt Update(vPL_PLANTILLA Reg) { mPlantillas o = new mPlantillas(); return o.Update(Reg); }
public ByARpt Insert(vPL_PLANTILLA Reg) { mPlantillas o = new mPlantillas(); return o.Insert(Reg); }