public static PricingEverydayPriceListGroup Copy(this PricingEverydayPriceListGroup source) { var copy = new PricingEverydayPriceListGroup(); copy.Key = source.Key; copy.Name = source.Name; copy.Title = source.Title; copy.Sort = source.Sort; foreach (PricingEverydayPriceList priceList in source.PriceLists) { PricingEverydayPriceList listCopy = priceList.Copy(); copy.PriceLists.Add(listCopy); } return(copy); }
public static PricingEverydayPriceList Copy(this PricingEverydayPriceList source) { var copy = new PricingEverydayPriceList(); copy.IsKey = source.IsKey; copy.Id = source.Id; copy.Key = source.Key; copy.Code = source.Code; copy.Name = source.Name; copy.Title = source.Title; copy.Sort = source.Sort; copy.IsSelected = source.IsSelected; return(copy); }
private bool ApplyTemplateCanExecute(PricingRoundingTemplate template, PricingEverydayPriceList priceList) { bool result = template != null && priceList != null; return(result); }