public ActionResult DeleteChart(int id) { Chart chart = ChartManager.GetChart(id, false); ApplicationUser user = userManager.GetUser(User.Identity.GetUserId()); if (user.Dashboard.Contains(chart)) { user.Dashboard.Remove(chart); userManager.Update(user); } return(RedirectToAction("Index")); }