public void Update(Combustivel combustivel) { if (combustivel == null) { throw new ArgumentNullException("combustivel"); } CombustivelDallHelper.UpdateCombustivel(combustivel); }
public void Insert(Combustivel combustivel) { if (combustivel == null) { throw new ArgumentNullException("combustivel"); } CombustivelDallHelper.InsertCombustivel(combustivel); }
public void Delete(int id) { CombustivelDallHelper.DeleteCombustivel(id); }
public Combustivel Find(int id) { return(CombustivelDallHelper.GetCombustivel(id)); }
private void InicializaDados() { _combustiveis = CombustivelDallHelper.GetCombustiveis(); }