Esempio n. 1
0
        public static bool GuardarSuic(suic_capacitacion suic)
        {
            bool ok = false;

            using (NatgasHO model = new NatgasHO())
            {
                model.suic_capacitacion.Add(suic);
                model.SaveChanges();

                return(true);
            }
        }
Esempio n. 2
0
        public static List <suic> ConsultarActivos()
        {
            using (NatgasHO model = new NatgasHO())
            {
                List <suic> listado = model
                                      .suic
                                      .Where(x => x.habilitado && x.fecha_proxima_revision >= DateTime.Now)
                                      .ToList();

                return(listado);
            }
        }