public ActionResult Create(rol rol)
        {
            if (ModelState.IsValid)
            {
                db.rol.Add(rol);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(rol);
        }
 public ActionResult Edit(rol rol)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rol).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(rol);
 }