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)); }
public IHttpActionResult GetAll() { return(Ok(appUserService.GetAll())); }