//VENDOR IS AUTHORISED ONLY //APPROVE ORDER REQUESTS FROM CUSTOMERS public ActionResult ApproveOrder(int id, int productId) { bool status = productActionContext.ApproveBookingStatus(id); bool productLock = false; if (status) { productLock = productActionContext.MakeProductUnavailable(productId); } if (!productLock || !status) { TempData["ERROR"] = true; } TempData["ERROR"] = false; return(RedirectToAction("ProductOrderList", "User")); }