Ejemplo n.º 1
0
        public ActionResult Add(EmployeeProfile profile)
        {
            var viewName = "";
            if (ModelState.IsValid)
            {
                viewName = "Index";
                //process profile
            }

            return View(viewName);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public ActionResult Edit(EmployeeProfile profile)
 {
     return View();
 }