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); } }
public void LoadPlan(int id) { this.Plan = _dataService.GetPlan(id); }