I am currently trying to display one user from the list after the user clicks the log in button, I only want to display the newly registered user and the list of users that are already there should be optional to view
I have this in my controller
public ActionResult ViewUsers()
{
DataAccessLyer dal = new DataAccessLayer();
List<UserDetailModel> list = dal.GetUserList();
return View(list);
}