public IActionResult funUser() { funUser fUser = new funUser(); { fUser.lName = "Toast"; fUser.fName = "Burnt"; }; return(View("user", fUser)); }
public IActionResult manyUsers() { List <funUser> mUsers = new List <funUser>(); funUser oneUser = new funUser(); { oneUser.fName = "Burnt"; oneUser.lName = "Toast"; } funUser twoUser = new funUser(); { twoUser.fName = "Runny"; twoUser.lName = "Eggs"; } mUsers.Add(oneUser); mUsers.Add(twoUser); return(View("moreusers", mUsers)); }