public ActionResult Edit([Bind(Include = "ID,roleDes")] Role role)
 {
     if (Session["user"] == null)
     {
         return(RedirectToAction("Index", "Home"));
     }
     if (ModelState.IsValid)
     {
         db.Entry(role).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(role));
 }
 public ActionResult Edit([Bind(Include = "ID,firstName,lastName,telephoneNo,role,email,address1,city,country,lat,lon")] Employee employee)
 {
     if (Session["user"] == null)
     {
         return(RedirectToAction("Index", "Home"));
     }
     if (ModelState.IsValid)
     {
         db.Entry(employee).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Employees"));
     }
     ViewBag.role = new SelectList(db.Roles, "ID", "roleDes", employee.role);
     return(View(employee));
 }