public ActionResult EditerTypes(String Id)
 {
     TypesTable types = new TypesTable(Session["Database"]);
     if (types.SelectByID(Id))
         return View(types.type);
     else
         return RedirectToAction("ListerTypes", "Bieres");
 }
 public ActionResult EditerTypes(TypesRecord record)
 {
     TypesTable table = new TypesTable(Session["Database"]);
     if (ModelState.IsValid)
     {
         if (table.SelectByID(record.Id))
         {
             table.type = record;
             table.Update();
             return RedirectToAction("ListerTypes", "Bieres");
         }
     }
     return View(record);
 }