Exemplo n.º 1
0
 public IActionResult Create(Employee employee)
 {
     if (ModelState.IsValid)
     {
         var client = new
                      EmployeeService.EmployeeServiceClient(channel);
         var createdEmployee = client.Insert(employee);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(employee));
 }