public ActionResult Views() { IEnumerable <Book> booksList = BookRepositary.GetAllBooks(); IEnumerable <User> usersList = UserRepositary.GetAllUsers(); ViewBag.books = booksList; ViewData["Users"] = usersList; return(View()); }
public ActionResult Users() { IEnumerable <User> users = UserRepositary.GetAllUsers(); return(View(users)); }