/// <summary> /// 获取套餐模板方案空间 /// </summary> /// <param name="packSpaceId">套餐模板空间Id</param> /// <returns>套餐模板方案空间</returns> public DecorationPackSchemeSpace GetSchemeSpace(Guid packSpaceId) { DecorationPackSchemeSpace currentSchemeSpace = this.SchemeSpaces.SingleOrDefault(x => x.PackSpaceId == packSpaceId); //if (currentSchemeSpace == null) //{ // throw new ArgumentOutOfRangeException("packSpaceId", string.Format("套餐模板空间Id为\"{0}\"的套餐模板方案空间不存在!", packSpaceId)); //} return(currentSchemeSpace); }
/// <summary> /// 删除套餐模板方案空间 /// </summary> /// <param name="schemeSpace">套餐模板方案空间</param> public void RemoveSchemeSpace(DecorationPackSchemeSpace schemeSpace) { this.SchemeSpaces.Remove(schemeSpace); }