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