Пример #1
0
        public ActionResult Add(AddEmployeeViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            model.AddEmployee();

            return RedirectToAction("Index");
        }
Пример #2
0
 public ActionResult Add()
 {
     AddEmployeeViewModel model = new AddEmployeeViewModel();
     return View(model);
 }