public ActionResult Edit(CombustivelModels combustivel)
 {
     try
     {
         combustivel.Update();
         return RedirectToAction("Index");
     }
     catch
     {
         return Redirect("/Error");
     }
 }
 public ActionResult Create(CombustivelModels combustivel)
 {
     try
     {
         combustivel.Insert();
         return RedirectToAction("Index");
     }
     catch
     {
         return Redirect("/Error");
     }
 }
 // GET: Combustivel/Edit/5
 public ActionResult Edit(int id)
 {
     ViewBag.Breadcrumb = new Breadcrumb().GetBreadcrumb(this, "Edit", id);
     CombustivelModels combustivel = new CombustivelModels(id);
     return View(combustivel);
 }
 // GET: Combustivel/Create
 public ActionResult Create()
 {
     ViewBag.Breadcrumb = new Breadcrumb().GetBreadcrumb(this, "Create");
     CombustivelModels combustivel = new CombustivelModels();
     return View(combustivel);
 }