Ejemplo n.º 1
0
        public async Task <int> InsertProductVariationAsync([FromBody] vm.ProductVariation productVariation)
        {
            var entity = _mapper.Map <db.ProductVariation>(productVariation);
            var key    = await _ds.InsertProductVariationAsync(entity);

            return(key);
        }
Ejemplo n.º 2
0
        public async Task <vm.ProductVariationListItem> InsertProductVariationAndReturnListItem([FromBody] vm.ProductVariation productVariation)
        {
            var key = await InsertProductVariationAsync(productVariation);

            return(await GetProductVariationListItem(key));
        }