public ActionResult Index()//(pass in projects id { if (User.IsInRole("Admin")) { return(View(db.Projects.ToList())); } else { var userId = User.Identity.GetUserId(); var AssignProject = pjHelper.AssignedUserToProject(userId); return(View(AssignProject)); } }