public static bool GuardarSuic(suic_capacitacion suic) { bool ok = false; using (NatgasHO model = new NatgasHO()) { model.suic_capacitacion.Add(suic); model.SaveChanges(); return(true); } }
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); } }