Example #1
0
        public ActionResult Create(FromOneViewModel model)
        {
            try
            {
                String FirstName = model.FirstName;
                String LastName  = model.LastName;
                ViewBag.FullName = FirstName + " " + LastName;

                return(View());
            }
            catch
            {
                return(View());
            }
        }
Example #2
0
        public ActionResult Create(FromOneViewModel model)
        {
            try
            {
                // TODO: Add insert logic here
                string FirstName = model.FirstName;
                string LastName  = model.LastName;

                ViewBag.FullName = FirstName + " " + LastName;

                return(View());
            }
            catch
            {
                return(View());
            }
        }