public ActionResult Create(FromOneViewModel model) { try { String FirstName = model.FirstName; String LastName = model.LastName; ViewBag.FullName = FirstName + " " + LastName; return(View()); } catch { return(View()); } }
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()); } }