Пример #1
0
        public static BackupJobDto FromBackup(IBackupJob backup, ApiController controller, string app)
        {
            var result = SimpleMapper.Map(backup, new BackupJobDto());

            return(result.CreateLinks(controller, app));
        }
Пример #2
0
 public static BackupJobDto FromBackup(IBackupJob backup)
 {
     return(SimpleMapper.Map(backup, new BackupJobDto()));
 }
Пример #3
0
        public static BackupJobDto FromDomain(IBackupJob backup, Resources resources)
        {
            var result = SimpleMapper.Map(backup, new BackupJobDto());

            return(result.CreateLinks(resources));
        }