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")); }
public async Task <ActionResult> Create(Employee.MVC.Models.Employee newEmployee) { return(View(await _employeeServiceProxy.Create(newEmployee))); }