Example #1
0
 public ActionResult Rights()
 {
     if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"])))
     {
         using (var db = new RightsRepository())
         {
             Session["RightEdit"] = "";
             //var model = db.GetRightsDetails(null);
             List <DisplayMenuModel> model = rights.DisplayMenuList();
             RoleList(null);
             return(View(model));
         }
     }
     return(RedirectToAction("Login", "Login"));
 }