public async Task <IActionResult> DeleteProductOptionAsync(Guid productId, Guid id) { var result = await _productOptionService.DeleteProductOptionAsync(productId, id); if (!result.Success) { return(BadRequest(result.Message)); } var productOptionResource = _mapper.Map <ProductOption, ProductOptionResource>(result.ProductOption); return(Ok(productOptionResource)); }
public async Task <IActionResult> DeleteOption(Guid productId, Guid id) { await _productOptionService.DeleteProductOptionAsync(productId, id); return(Ok()); }