Exemplo n.º 1
0
        public ActionResult Views()
        {
            IEnumerable <Book> booksList = BookRepositary.GetAllBooks();
            IEnumerable <User> usersList = UserRepositary.GetAllUsers();

            ViewBag.books     = booksList;
            ViewData["Users"] = usersList;
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Users()
        {
            IEnumerable <User> users = UserRepositary.GetAllUsers();

            return(View(users));
        }