public List <TimeViewDTO> ConsultarporId(int ID) { TimeDatabase db = new TimeDatabase(); return(db.ConsultarPorID(ID)); }
public List <TimeViewDTO> ConsultarporNome(string nome) { TimeDatabase db = new TimeDatabase(); return(db.ConsultarPorNome(nome)); }
public List <TimeViewDTO> Listar() { TimeDatabase db = new TimeDatabase(); return(db.Listar()); }
public void Remover(int ID) { TimeDatabase db = new TimeDatabase(); db.Remover(ID); }
public void Alterar(TimeDTO dto) { TimeDatabase db = new TimeDatabase(); db.Alterar(dto); }
public int Salvar(TimeDTO dto) { TimeDatabase db = new TimeDatabase(); return(db.Salvar(dto)); }