Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }