Exemplo n.º 1
0
        public IActionResult funUser()
        {
            funUser fUser = new funUser();

            {
                fUser.lName = "Toast";
                fUser.fName = "Burnt";
            };
            return(View("user", fUser));
        }
Exemplo n.º 2
0
        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));
        }