public async Task DeleteProductPictureMapping(ProductPictureModel productPicture) { if (productPicture == null) { throw new ArgumentNullException("ProductPictureModel"); } await _productPictureMapping.Delete(_mapper.Map <ProductPictureMapping>(productPicture)); }
public async Task DeleteProductCategoryMapping(ProductCategoryModel productCategory) { if (productCategory == null) { throw new ArgumentNullException("ProductCategoryMapping"); } await _productCategoryRepository.Delete(_mapper.Map <ProductCategoryMapping>(productCategory)); }
public async Task DeletePicture(int id) { if (id == 0) { throw new ArgumentNullException("picture"); } await _pictureRepository.Delete(_mapper.Map <Picture>(await GetPictureById(id))); }
public async Task DeleteToken(TokenManager token) { await _tokenManagerRepository.Delete(token); }