protected internal override void Antes()
 {
     ep = new NROCONVIG();
     Mapper.Map(oDto, ep);
     ctx.NROCONVIG.Add(ep);
     byaRpt.id = ep.YEAR_VIG.ToString();
 }
 protected internal override bool esValido()
 {
     ep = ctx.NROCONVIG.Where(t => t.YEAR_VIG == oDto.YEAR_VIG && t.COD_TIP == oDto.COD_TIP).FirstOrDefault();
     if (ep == null) return true;
     else
     {
         byaRpt.Error = true;
         byaRpt.Mensaje = "Ya se encuentra un consecutivo registrado con estas caracteristicas";
         return false;
     }
 }
 protected internal override bool esValido()
 {
     ep = ctx.NROCONVIG.Where(t => t.YEAR_VIG == oDto.YEAR_VIG && t.COD_TIP == oDto.COD_TIP).FirstOrDefault();
     if (ep == null) return false;
     else return true;
 }