Beispiel #1
0
        private Models.ISchedulablePlan LoadPlan(Options options)
        {
            Models.ISchedulablePlan result = null;

            switch (options.PlanType)
            {
            case PlanTypeEnum.Backup:
                result = _daoBackupPlan.Get(options.PlanIdentifier);
                break;

            case PlanTypeEnum.Restore:
                result = _daoRestorePlan.Get(options.PlanIdentifier);
                break;
            }

            return(result);
        }