// GET: UserCharacters List by User public ActionResult Personal() { using (BLLContext ctx = new BLLContext()) { List <UserCharacterBO> items = ctx.GetAllUserCharactersByUserName(User.Identity.Name); return(View(items)); //UserBO user = ctx.GetUserByUsername(User.Identity.Name); //List<UserCharacterBO> items = ctx.GetAllUserCharactersByUserName(User.Identity.Name); //if ((user.UserName == User.Identity.Name) || User.IsInRole("Moderator") || User.IsInRole("Administrator")) //{ // return View(items); //} //TempData["message"] = "This ain't your list of personalized characters."; //return RedirectToAction("Login", "Home"); } }