public ProductDescription AddProductDescription(decimal basePrice, string description, bool gstFree) { var pd = new ProductDescription(this, basePrice, description, gstFree); if (ProductDescriptions.Contains(pd)) { throw new Exception(" Product already exists"); } ProductDescriptions.Add(pd); return(pd); }
public ProductDescription FetchProductDescription(Guid id) { return(ProductDescriptions.Where(pd => pd.Id == id).First()); }