Esempio n. 1
0
        public IActionResult Create()
        {
            BookUI book = new BookUI()
            {
                BookType    = bookTypeServices.GetParentList(),
                PublishList = publishHouseServices.GetList(),
            };

            return(View(book));
        }
Esempio n. 2
0
        // GET: BookType/Create
        public ActionResult Create()
        {
            BookTypeModel model = new BookTypeModel()
            {
                Parent = bookTypeServices.GetParentList()
            };

            return(View(model));
        }