public void UpdateRole()
        {
            RolesController rc = new RolesController();
            DataContext db = new DataContext();
            tbl_Roles r = new tbl_Roles();
            {
                r.RoleId = 2;
                r.RoleName = "Tester";

            }
            rc.UpdateRole(r);
            tbl_Roles FinalRole = db.tbl_Roles.Find(2);
            Assert.AreEqual("Tester",FinalRole.RoleName);
            Assert.AreEqual(2,FinalRole.RoleId);
        }
 public void UpdateRole(tbl_Roles tbl_Roles)
 {
     db.Entry(tbl_Roles).State = EntityState.Modified;
     db.SaveChanges();
 }