Exemplo n.º 1
0
 public OfferItem(string sku, OfferItemType offerType, Guid offerID, Guid productTypeId)
 {
     this.Sku = sku;
     this.OfferItemType = offerType;
     this.OfferID = offerID;
     this.ProductTypeID = productTypeId;
 }
Exemplo n.º 2
0
        public CommandResult CreateOfferItemType(string sequence, string description, string offerTypeId, string userLoginId)
        {
            var offerItemType = new OfferItemType
            {
                OfferItemTypeId = Utility.GetId(),
                Description     = description,
                Sequence        = sequence,
                UserLoginId     = userLoginId,
                IsActive        = "Y"
            };

            _appRepository.OfferItemType().Add(offerItemType);
            if (!string.IsNullOrEmpty(offerTypeId))
            {
                _appRepository.OfferItemTypeMap().Add(SetOfferItemTypeMap(offerTypeId, offerItemType.OfferItemTypeId, userLoginId));
            }
            return(Utility.CommandSuccess(offerItemType.OfferItemTypeId));
        }