Ejemplo n.º 1
0
        public static BackupJobsDto FromDomain(IEnumerable <IBackupJob> backups, Resources resources)
        {
            var result = new BackupJobsDto
            {
                Items = backups.Select(x => BackupJobDto.FromDomain(x, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }
Ejemplo n.º 2
0
        public static BackupJobsDto FromBackups(IEnumerable <IBackupJob> backups, ApiController controller, string app)
        {
            var result = new BackupJobsDto
            {
                Items = backups.Select(x => BackupJobDto.FromBackup(x, controller, app)).ToArray()
            };

            return(result.CreateLinks(controller, app));
        }