//POST: ADD NEW PRODUCT //ONLY VENDOR IS AUTHORISED public ActionResult ProductForm() { try { IEnumerable <CategoryModel> categoryList = productActionContext.GetCategories(); ViewBag.Category = categoryList; } catch (Exception e) { //LOG EXCEPTION logger.Error("Categories not loaded by ProductForm() of ProductController : ", e); } return(View()); }