Exemplo n.º 1
0
        public static void MapToResultData(QueryResult <UserSummary> result, UserQueryResultResourceData data)
        {
            data.Count  = result.Count;
            data.Filter = result.Filter;
            data.Start  = result.Start;
            data.Total  = result.Total;

            data.Items = result.Items
                         .Select(x => new UserResultResource {
                Data = x, Links = x
            })
                         .ToList();
        }
Exemplo n.º 2
0
 public static void MapToResultData(QueryResult <UserSummary> result, UserQueryResultResourceData data)
 {
     Mapper.Map(result, data);
 }