public IActionResult ProductEdit(int productId = 0) { var product = _productService.getProductById(productId); if(product == null) { throw new NullReferenceException(nameof(product)); } var productModel = _productModelFactory.getProductModelFromProduct(product); return View("~/Admin/Views/Product/_editProduct.cshtml", productModel); }