public ActionResult Add(EmployeeProfile profile) { var viewName = ""; if (ModelState.IsValid) { viewName = "Index"; //process profile } return View(viewName); }
public ActionResult Detail() { var model = new EmployeeProfile { EmployeeId = 1337, FirstName = "Mike", LastName = "Ibarra", Department = "IT", Position = "Cog", Email = "*****@*****.**", HireDate = new DateTime(2010, 10, 24) }; return View(model); }
public ActionResult Edit(EmployeeProfile profile) { return View(); }