예제 #1
0
 public async Task <ActionResult> Create(Employee.MVC.Models.Employee newEmployee)
 {
     //return View(await _employeeServiceProxy.Create(newEmployee));
     if (ModelState.IsValid)
     {
         await _employeeServiceProxy.Create(newEmployee);
     }
     return(RedirectToAction("Index"));
 }
예제 #2
0
 public async Task <ActionResult> Create(Employee.MVC.Models.Employee newEmployee)
 {
     return(View(await _employeeServiceProxy.Create(newEmployee)));
 }