public ActionResult Create() { ViewBag.CategoryId = new SelectList(CacheHelper.GetBooksFromCache(), "Id", "Title"); ViewBag.Yazar = authorManager.List(); ViewBag.Kategori = categoryManager.List(); ViewBag.Yayınevi = publisherManager.List(); return(View(new CreateBookViewModel())); }
public ActionResult Index() { return(View(publisherManager.List(x => x.IsActive == true))); }