/// <summary> /// Adds a new goal to the plan. /// </summary> /// <param name="name">The name of the category to use.</param> /// <param name="amount">The amount to allow in bucket.</param> public void AddGoal(string name, double amount) { var cat = new Category(name); var goal = new Goal(cat, amount); mPlan.AddGoal(goal); mPlanRepository.UpdatePlan(mPlan); }