public IActionResult DeleteProductFromStore(int storeProductId) { var storeProduct = _localService.GetStoreProduct(storeProductId); var errorMessage = ""; if (_n11Service.DeleteProduct(long.Parse(storeProduct.matched_product_code), ref errorMessage)) { _localService.DeleteStoreProduct(storeProduct); return(Json(new { isDeleted = true, productId = storeProduct.product_id, storeId = storeProduct.store_id })); } return(Json(new { isDeleted = false, errorMessage = errorMessage })); }