public ActionResult Index() { var types = typeData.GetAll(); return(View(types)); }
public ActionResult Create() { ViewBag.TypeId = new SelectList(typeData.GetAll(), "TypeId", "Name"); ViewBag.AuthorId = new SelectList(authorData.GetAll(), "AuthorId", "AuthorName"); return(View()); }
public void OnGet() { Types = typeData.GetAll(); typeList = new SelectList(Types, "TypeId", "Type"); }