protected internal override void Antes()
 {
     ep = new VIGENCIAS();
     Mapper.Map(oDto, ep);
     ctx.VIGENCIAS.Add(ep);
     byaRpt.id = ep.YEAR_VIG.ToString();
 }
 protected internal override bool esValido()
 {
     ep = ctx.VIGENCIAS.Where(t => t.YEAR_VIG == oDto.YEAR_VIG).FirstOrDefault();
     if (ep == null) return true;
     else
     {
         byaRpt.Error = true;
         byaRpt.Mensaje = "Ya se encuentra una Vigencia registrada para este año";
         return false;
     }
 }
 protected internal override bool esValido()
 {
     ep = ctx.VIGENCIAS.Where(t => t.YEAR_VIG == oDto.YEAR_VIG).FirstOrDefault();
     if (ep == null) return false;
     else return true;
 }