Administrasjon.Controllers.AdminProductController.Edit C# (CSharp) Method

Edit() private method

private Edit ( ProductModel productModel ) : System.Web.Mvc.ActionResult
productModel Kaffeplaneten.Models.ProductModel
return System.Web.Mvc.ActionResult
        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();
            }
        }

Same methods

AdminProductController::Edit ( int id ) : System.Web.Mvc.ActionResult