public static ClientsDto FromApp(IAppEntity app, ApiController controller) { var result = new ClientsDto { Items = app.Clients.Select(x => ClientDto.FromClient(x.Key, x.Value, controller, app.Name)).ToArray() }; return(result.CreateLinks(controller, app.Name)); }
public static ClientsDto FromApp(IAppEntity app, Resources resources) { var result = new ClientsDto { Items = app.Clients .Select(x => ClientDto.FromClient(x.Key, x.Value)) .Select(x => x.CreateLinks(resources)) .ToArray() }; return(result.CreateLinks(resources)); }