Exemplo n.º 1
0
        public ActionResult Info()
        {
            string firstName  = Request.Form["Name"];
            string secondName = Request.Form["LastName"];
            string sex        = Request.Form["sex"];
            string kross      = Request.Form["Кросс"];
            string treck      = Request.Form["Трек"];
            string street     = Request.Form["Стрит"];
            string chopper    = Request.Form["Чоппер"];
            string enduro     = Request.Form["Эндуро"];
            string turing     = Request.Form["Турист"];

            blogContext.AddProfile(firstName, secondName, sex, kross, treck, street, chopper, enduro, turing);
            return(View(blogContext.Profiles.ToList()));
        }