Ejemplo n.º 1
0
 public ActionResult EditerTypes(String Id)
 {
     TypesTable types = new TypesTable(Session["Database"]);
     if (types.SelectByID(Id))
         return View(types.type);
     else
         return RedirectToAction("ListerTypes", "Bieres");
 }
Ejemplo n.º 2
0
 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);
 }