public void Remover(int id) { CargoDataBase db = new CargoDataBase(); db.Remover(id); }
public List <CargoDTO> Listar() { CargoDataBase db = new CargoDataBase(); return(db.Listar()); }
public List <CargoDTO> Consultar(string nome) { CargoDataBase db = new CargoDataBase(); return(db.Consultar(nome)); }
public int Salvar(CargoDTO dto) { CargoDataBase db = new CargoDataBase(); return(db.Salvar(dto)); }