Exemplo n.º 1
0
        public IActionResult Index()
        {
            var profiles = _userService.GetAll()
                           .OrderByDescending(user => user.Rating)
                           .Select(u => new ProfileModel
            {
                Email           = u.Email,
                UserName        = u.UserName,
                ProfileImageUrl = u.ProfileImageUrl,
                UserRating      = u.Rating,
                MemberSince     = u.MemberSince
            });

            var model = new ProfileListModel
            {
                Profiles = profiles
            };

            return(View(model));
        }
Exemplo n.º 2
0
        // GET: User
        public ActionResult Index()
        {
            var users = presentation.User.ParseListDomainToPresentation(appUser.GetAll());

            return(View(users));
        }
Exemplo n.º 3
0
 public IHttpActionResult GetAll()
 {
     return(Ok(appUserService.GetAll()));
 }