public ActionResult ListSortedUsers(PeopleFilterViewModel filter) { if (ModelState.IsValid) { var users = _appUserService.APIFilter(filter); return(Ok(Mapping.Map <IEnumerable <AppUser>, IEnumerable <PersonProfileViewModel> >(users))); } return(null); }