public ActionResult Create(EmploymentDepartment employmentDepartment) { if (ModelState.IsValid) { var result = HRBusinessService.CreateEmploymentDepartment(UserOrganisationId, employmentDepartment); if (result.Succeeded) { return(this.JsonNet(result)); } foreach (var error in result.Errors) { ModelState.AddModelError("", error); } } return(this.JsonNet(employmentDepartment)); }