예제 #1
0
        public async Task DeleteProductPictureMapping(ProductPictureModel productPicture)
        {
            if (productPicture == null)
            {
                throw new ArgumentNullException("ProductPictureModel");
            }

            await _productPictureMapping.Delete(_mapper.Map <ProductPictureMapping>(productPicture));
        }
예제 #2
0
        public async Task DeleteProductCategoryMapping(ProductCategoryModel productCategory)
        {
            if (productCategory == null)
            {
                throw new ArgumentNullException("ProductCategoryMapping");
            }

            await _productCategoryRepository.Delete(_mapper.Map <ProductCategoryMapping>(productCategory));
        }
예제 #3
0
        public async Task DeletePicture(int id)
        {
            if (id == 0)
            {
                throw new ArgumentNullException("picture");
            }

            await _pictureRepository.Delete(_mapper.Map <Picture>(await GetPictureById(id)));
        }
예제 #4
0
 public async Task DeleteToken(TokenManager token)
 {
     await _tokenManagerRepository.Delete(token);
 }