public HttpResponseMessage Put(EmploymentTypeDTO accessTypeDTO) { try { EmploymentTypeDTO dto = service.updateEmploymentType(accessTypeDTO); if (dto != null) { return(Request.CreateResponse(HttpStatusCode.OK, dto)); } else { return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.update_title)); } } catch (Exception) { return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.update_title)); } }