コード例 #1
0
 public void CreatePlan(string name, string description, int fiscalYearId, string userName, int planFrom, int planTo)
 {
     if (_dataService.PlanExist(name))
     {
         throw new ForecastServiceException("Plan already exists");
     }
     if (_dataService.CreateForecastPlan(name, description, fiscalYearId, userName, planFrom, planTo))
     {
         this.Plan = _dataService.GetPlan(name);
     }
 }
コード例 #2
0
 public void LoadPlan(int id)
 {
     this.Plan = _dataService.GetPlan(id);
 }