示例#1
0
 public static CatalogueItem WithCategories(this CatalogueItem cItem, List <Category> categories)
 {
     cItem.Categories = categories;
     return(cItem);
 }
示例#2
0
 public static CatalogueItem WithDescription(this CatalogueItem cItem, string Description)
 {
     cItem.Descripton = Description;
     return(cItem);
 }
示例#3
0
 public static CatalogueItem WithName(this CatalogueItem cItem, string name)
 {
     cItem.Name = name;
     return(cItem);
 }
示例#4
0
 public static CatalogueItem WithPrice(this CatalogueItem cItem, double price)
 {
     cItem.Price = price;
     return(cItem);
 }
示例#5
0
 public static CatalogueItem WithId(this CatalogueItem cItem, int id)
 {
     cItem.Id = id;
     return(cItem);
 }