public async Task <UserSearchCollection> List([FromQuery] UserSearchQuery query) { var users = await userSearchService.List(query); var results = users.Results.Select(i => mapper.MapValue(i, new UserSearch())); return(new UserSearchCollection(query, users.Total, results)); }
public async Task <Value> Get(String valueId) { var entity = await this.Entity(valueId); return(mapper.MapValue(entity, new Value())); }
public async Task <Value> Get(Guid crazyKey) { var entity = await this.Entity(crazyKey); return(mapper.MapValue(entity, new Value())); }