public List <Sala> ReadTipoSala() { SalaDac salaDac = new SalaDac(); return(salaDac.ReadTipoSala()); }
public bool Update(Sala entity) { SalaDac salaDac = new SalaDac(); salaDac.Update(entity); return(true); }
public Sala ReadBy(int id) { SalaDac salaDac = new SalaDac(); Sala result = new Sala(); result = salaDac.ReadBy(id); return(result); }
public List <Sala> ReadByTipo(string tipo) { SalaDac salaDac = new SalaDac(); List <Sala> result = new List <Sala>(); foreach (var item in salaDac.ReadByTipo(tipo)) { Sala sala = new Sala(); sala = item; result.Add(sala); } return(result); }
public Sala Create(Sala entity) { if (Verificar(entity)) { SalaDac salaDac = new SalaDac(); return(salaDac.Create(entity)); } else { return(null); } }
public void Delete(int id) { SalaDac salaDac = new SalaDac(); salaDac.Delete(id); }