示例#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));
        }
        // GET: User
        public ActionResult Index()
        {
            var users = presentation.User.ParseListDomainToPresentation(appUser.GetAll());

            return(View(users));
        }
示例#3
0
 public IHttpActionResult GetAll()
 {
     return(Ok(appUserService.GetAll()));
 }