public static BackupJobDto FromBackup(IBackupJob backup, ApiController controller, string app) { var result = SimpleMapper.Map(backup, new BackupJobDto()); return(result.CreateLinks(controller, app)); }
public static BackupJobDto FromBackup(IBackupJob backup) { return(SimpleMapper.Map(backup, new BackupJobDto())); }
public static BackupJobDto FromDomain(IBackupJob backup, Resources resources) { var result = SimpleMapper.Map(backup, new BackupJobDto()); return(result.CreateLinks(resources)); }