public ActionResult Index(int id) { using (var collectService = new CollectsService()) { using (var userService = new UsersService()) { if (!userService.IsOwner(GetUserId())) { return(HttpNotFound()); } } ViewBag.ThisId = id; var collectUsers = collectService.GetCollectUserIndex(id); return(View(collectUsers)); } }