Esempio n. 1
0
        public virtual ActionResult IndexUser(string slug)
        {
            var user = _context.FindUserBySlug(slug);

            if (user == null)
            {
                return(HttpNotFound());
            }

            var model = new UserViewModel {
                User = user, PhotosCount = _context.FindPhotoCountsByUserId(user.UserId)
            };

            return(View(Views.IndexUser, model));
        }