public HttpResponseMessage Delete(int Id) { bool isDeleted = service.deleteOvertime(Id); if (isDeleted) { return(Request.CreateResponse(HttpStatusCode.OK, sysLanguage.CompanyTitlesControllerStrings.delete_title)); } else { return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.delete_titleError)); } }