public HttpResponseMessage Put(OvertimeDTO OvertimeDTO) { OvertimeDTO dto = service.updateOvertime(OvertimeDTO); if (dto != null) { return(Request.CreateResponse(HttpStatusCode.OK, dto)); } else { return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.update_title)); } }