예제 #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);
 }