예제 #1
0
        public List <TimeViewDTO> ConsultarporId(int ID)
        {
            TimeDatabase db = new TimeDatabase();

            return(db.ConsultarPorID(ID));
        }
예제 #2
0
        public List <TimeViewDTO> ConsultarporNome(string nome)
        {
            TimeDatabase db = new TimeDatabase();

            return(db.ConsultarPorNome(nome));
        }
예제 #3
0
        public List <TimeViewDTO> Listar()
        {
            TimeDatabase db = new TimeDatabase();

            return(db.Listar());
        }
예제 #4
0
        public void Remover(int ID)
        {
            TimeDatabase db = new TimeDatabase();

            db.Remover(ID);
        }
예제 #5
0
        public void Alterar(TimeDTO dto)
        {
            TimeDatabase db = new TimeDatabase();

            db.Alterar(dto);
        }
예제 #6
0
        public int Salvar(TimeDTO dto)
        {
            TimeDatabase db = new TimeDatabase();

            return(db.Salvar(dto));
        }