public ActionResult Confirm(int id) { using (var collectService = new CollectsService()) { var collectViewModel = collectService.GetCollectViewModel(id, GetUserId()); using (var userService = new UsersService()) { if (!userService.IsAdmin(GetUserId())) { if (!collectService.IsCollectionsUser(id, GetUserId())) { return(HttpNotFound()); } } } if (collectService.CounterCollectionsGifts(id) == 0) { ViewBag.MustChooseItem = "Musisz wybrać któryś z prezentów !"; } return(View(collectViewModel)); } }