예제 #1
0
 public void Update(Combustivel combustivel)
 {
     if (combustivel == null)
     {
         throw new ArgumentNullException("combustivel");
     }
     CombustivelDallHelper.UpdateCombustivel(combustivel);
 }
예제 #2
0
 public void Insert(Combustivel combustivel)
 {
     if (combustivel == null)
     {
         throw new ArgumentNullException("combustivel");
     }
     CombustivelDallHelper.InsertCombustivel(combustivel);
 }
예제 #3
0
 public void Delete(int id)
 {
     CombustivelDallHelper.DeleteCombustivel(id);
 }
예제 #4
0
 public Combustivel Find(int id)
 {
     return(CombustivelDallHelper.GetCombustivel(id));
 }
예제 #5
0
 private void InicializaDados()
 {
     _combustiveis = CombustivelDallHelper.GetCombustiveis();
 }