Ejemplo n.º 1
0
        public async Task Create(DetalleEvaluacionCompetenciasConductuales model)
        {
            try
            {
                var entities = await _db.detalleConductuales
                               .FirstOrDefaultAsync(e => e.MatrizId == model.MatrizId && e.claveEvaluacion == model.claveEvaluacion);


                if (entities != null)
                {
                    model.DetalleId = entities.DetalleId;
                    _db.Entry(entities).CurrentValues.SetValues(model);
                    await _db.SaveChangesAsync();
                }
                else
                {
                    _db.detalleConductuales.Add(model);
                    await _db.SaveChangesAsync();
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.Message, e);
            }
        }
Ejemplo n.º 2
0
 //Crear ambito
 public async Task Create(Ambito Ambito)
 {
     try
     {
         _ctx.Ambito.Add(Ambito);
         await _ctx.SaveChangesAsync();
     } catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 3
0
 public async Task Create(Fortalezas model)
 {
     try
     {
         _db.fortalezas.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(CapacitacionYcertificacion obj)
 {
     try
     {
         _ctx.dbSetCapacitacionYcertificacion.Add(obj);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 5
0
 public async Task Create(MatrizCompetencias model)
 {
     try
     {
         _db.matrizcompetencias.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 6
0
 //Crear  nivel curso
 public async Task Create(NivelCurso NivelCurso)
 {
     try
     {
         _ctx.NivelCurso.Add(NivelCurso);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 7
0
 //Crear Congreso
 public async Task Create(Congreso Congreso)
 {
     try
     {
         _ctx.Congreso.Add(Congreso);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(EncargadoDespacho Obj)
 {
     try
     {
         _ctx.EncargadoDespacho.Add(Obj);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(EstadoEvaluacionSind model)
 {
     try
     {
         _db.estadoSind.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 10
0
 public async Task Create(RelacionCategoriasTecnicas model)
 {
     try
     {
         _db.categoriasTecnicas.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Agrega un objeto tipo  de Academico al catalogo de estado del Academico.
 /// Catalogo de EstadosAcademico CH
 /// </summary>
 /// <param name="GradoAcademico">Objeto tipo GradoAcademico</param>
 /// <returns></returns>
 public async Task Create(GradoAcademico GradoAcademico)
 {
     try
     {
         _ctx.GradoAcademico.Add(GradoAcademico);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Crea un nuevo registro de Certificacion
 /// </summary>
 /// <param name="Certificacion">objeto tipo Certificacion</param>
 /// <returns></returns>
 public async Task Create(Certificacion Certificacion)
 {
     try
     {
         _ctx.Certificacion.Add(Certificacion);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 13
0
 //Add Ins
 public async Task Create(Institucion institucion)
 {
     try
     {
         _Context.Instituciones.Add(institucion);
         await _Context.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 14
0
 public async Task Create(ClasificacionAreas model)
 {
     try
     {
         _db.clasificacionAreas.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 //Crear experiencia previa
 public async Task Create(ExperienciaPrevia ExperienciaPrevia)
 {
     try
     {
         _ctx.ExperienciaPrevia.Add(ExperienciaPrevia);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 16
0
 public async Task Create(ExperienciaDocente Obj)
 {
     try
     {
         _ctx.ExperienciaDocente.Add(Obj);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(TipoCompetencia model)
 {
     try
     {
         _db.tipoCompetencia.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 18
0
 public async Task Create(PeriodoEvaluacion model)
 {
     try
     {
         _db.periodoEvaluacion.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 19
0
 public async Task Create(AreasMejora model)
 {
     try
     {
         _db.areaMejora.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(RelacionCategoriaNominaCompetencias model)
 {
     try
     {
         _db.relacionCategoria.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Agrega un objeto tipo carrera al catalogo de carreras.
 /// Catalogo de carreras CH
 /// </summary>
 /// <param name="carrera">Objeto tipo carrera</param>
 /// <returns></returns>
 public async Task Create(Carrera carrera)
 {
     try
     {
         _ctx.Carrera.Add(carrera);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 22
0
 //Crear TipoBeca
 public async Task Create(TipoBeca TipoBeca)
 {
     try
     {
         _ctx.TipoBeca.Add(TipoBeca);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 23
0
 public async Task Create(DescripcionNivelCompetencias model)
 {
     try
     {
         _db.descripcionNivel.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(RelacionNivelesComportamientoSind model)
 {
     try
     {
         _db.relacionComportamientoSind.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 public async Task Create(CalificacionCompetencias model)
 {
     try
     {
         _db.calificacion.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Agrega un objeto tipo disciplina al catalogo de disciplinas.
 /// Catalogo de disciplinas CH
 /// </summary>
 /// <param name="disciplina">Objeto tipo disciplina</param>
 /// <returns></returns>
 public async Task Create(Disciplina disciplina)
 {
     try
     {
         _ctx.Disciplina.Add(disciplina);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 27
0
 public async Task Create(FamiliaUnidad model)
 {
     try
     {
         _db.familiaUnidad.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 28
0
 public async Task Create(CategoriasPorFamilia model)
 {
     try
     {
         _db.categoriasFamilia.Add(model);
         await _db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Crea un nuevo registro de Asociacion
 /// </summary>
 /// <param name="Asociacion">objeto tipo Asociacion</param>
 /// <returns></returns>
 public async Task Create(Asociacion asociacion)
 {
     try
     {
         _ctx.Asociacion.Add(asociacion);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
Ejemplo n.º 30
0
 //Crear Beca interna
 public async Task Create(BecaInterna BecaInterna)
 {
     try
     {
         _ctx.BecaInterna.Add(BecaInterna);
         await _ctx.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }