public StoreItemAvailabilityContract(StoreItemStoreContract store, float price, StoreSectionContract defaultSection) { Store = store; Price = price; DefaultSection = defaultSection; }
public static StoreItemSection ToStoreItemSectionModel(this StoreSectionContract contract) { return(new StoreItemSection( contract.Id, contract.Name, contract.SortingIndex)); }
public static StoreSection ToModel(this StoreSectionContract contract) { return(new StoreSection( new StoreSectionId(contract.Id, Guid.NewGuid()), contract.Name, contract.SortingIndex, contract.IsDefautlSection)); }
public ItemSearchContract(int id, string name, int defaultQuantity, float price, string itemCategoryName, string manufacturerName, StoreSectionContract defaultSection) { Id = id; Name = name; DefaultQuantity = defaultQuantity; Price = price; ItemCategoryName = itemCategoryName; ManufacturerName = manufacturerName; DefaultSection = defaultSection; }