public ActionResult Index() { UserBusinessLayer ubl = new UserBusinessLayer(); UserListViewModel ulViewModel = new UserListViewModel(); List <userinfo> userlist = ubl.GetUserInfo(); ulViewModel.userlist = userlist; return(View(ulViewModel)); }
public ActionResult Index() { UserBusinessLayer ubl = new UserBusinessLayer(); UserListViewModel ulViewModel = new UserListViewModel(); List <userinfo> userlist = ubl.GetUserInfo(); ulViewModel.userlist = userlist; return(View(ulViewModel)); }