Пример #1
0
        public List <Sala> ReadTipoSala()

        {
            SalaDac salaDac = new SalaDac();

            return(salaDac.ReadTipoSala());
        }
Пример #2
0
        public bool Update(Sala entity)
        {
            SalaDac salaDac = new SalaDac();

            salaDac.Update(entity);
            return(true);
        }
Пример #3
0
        public Sala ReadBy(int id)
        {
            SalaDac salaDac = new SalaDac();
            Sala    result  = new Sala();

            result = salaDac.ReadBy(id);


            return(result);
        }
Пример #4
0
        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);
        }
Пример #5
0
        public Sala Create(Sala entity)
        {
            if (Verificar(entity))
            {
                SalaDac salaDac = new SalaDac();



                return(salaDac.Create(entity));
            }
            else
            {
                return(null);
            }
        }
Пример #6
0
        public void Delete(int id)
        {
            SalaDac salaDac = new SalaDac();

            salaDac.Delete(id);
        }