public ActionResult Edit(ProductModel productModel)
{
productModel.productID = (int)Session["tempPID"];
if (_productBLL.update(productModel))
{
_loggingBLL.logToUser("Oppdaterte produkt: " + productModel.productName, (EmployeeModel)Session["Employee"]);
_loggingBLL.logToDatabase("Produkt " + productModel.productName + " ble oppdatert.");
return RedirectToAction("AllProducts");
}
else
{
return View();
}
}