public async Task <IActionResult> EditProduct(int productCode) { try { try { var getEditProduct = await _efCoreRepositoryProduct.EditProduct(productCode); if (getEditProduct == null) { return(NotFound()); } return(Ok(getEditProduct)); } catch (Exception) { return(BadRequest()); } } catch (Exception) { throw; } }