Esempio n. 1
0
        /// <summary>
        /// Returns the view to display images with a list of images
        /// </summary>
        /// <param name="page">The page name/source</param>
        /// <returns>The partial view of images</returns>
        public ActionResult ImageView(string page)
        {
            ImageServices service     = new ImageServices();
            UserServices  userService = new UserServices();
            List <Image>  model       = service.GetUserImageData(userService.GetUserIdOfCurrentPage(page));

            service.SetPages(model, page);
            return(PartialView("_Images", model));
        }