public ActionResult CreateMovie() //Add Movie Page [GET] { IEnumerable <OnlineMovieTicket.Entity.Category> category = categoryBL.CategoryDetails(); //Get category into movie add view. ViewBag.categories = new SelectList(category, "CategoryId", "CategoryName", "CategoryDescription"); return(View()); }
public ActionResult CategoryDetails() // GET Category { var categories = categoryBL.CategoryDetails(); //Method call to Category BL return(View(categories)); }
public ActionResult AddProduct() { ViewBag.Category = new SelectList(categoryBL.CategoryDetails(), "CategoryId", "CategoryName"); return(View()); }
public ActionResult CategoryDetails() { List <Category> categories = categoryBL.CategoryDetails(); return(View(categories)); }