//view the product to admin public ActionResult ViewProduct() { try { IEnumerable <Product> products = productDetails.DisplayProduct(); return(View(products)); } catch { return(RedirectToAction("Error", "Error")); } }//provides the admins operation