Esempio n. 1
0
        public ActionResult Index()
        {
            var types = typeData.GetAll();

            return(View(types));
        }
Esempio n. 2
0
 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");
 }