Example #1
0
 public ByARpt MatricularEstudiante(matriculasDto matricula)
 {
     ByARpt res = new ByARpt();
     cmdInsert o = new cmdInsert();
     o.oDto = matricula;
     res = o.Enviar();
     if (!res.Error) mCausacion.Causar(matricula.id_estudiante, int.Parse(res.id));
     return res;
 }
Example #2
0
 public matriculasDto Get(string id_estudiante, int vigencia)
 {
     using (ctx = new ieEntities())
     {
         matriculasDto r = new matriculasDto();
         matriculas o = ctx.matriculas.Where(t => t.id_estudiante == id_estudiante && t.vigencia == vigencia && t.estado == "AC").FirstOrDefault();
         if (o != null) Mapper.Map(o, r);
         else r = null;
         return r;
     }
 }
 public ByARpt Post(matriculasDto m)
 {
     m.usu = GetUser();
     mMatricula o = new mMatricula();
     return o.MatricularEstudiante(m);
 }