public async Task <ActionResult> Delete(int manufacturerId, int productId) { var result = await _productClient.DeleteManufacturerProduct(manufacturerId, productId); if (result.IsSuccessStatusCode) { TempData["ProductSuccessAlert"] = $"The product was successfully deleted!"; } else { ModelState.AddModelError(string.Empty, _genericErrorMessage); } return(RedirectToAction(nameof(Index), new { manufacturerId })); }