Пример #1
0
 public ActionResult Create(EmploymentTeam employmentTeam)
 {
     if (ModelState.IsValid)
     {
         var result = HRBusinessService.CreateEmploymentTeam(UserOrganisationId, employmentTeam);
         if (result.Succeeded)
         {
             return(this.JsonNet(result));
         }
         foreach (var error in result.Errors)
         {
             ModelState.AddModelError("", error);
         }
     }
     return(this.JsonNet(employmentTeam));
 }