public ClassifiedModel SetExpired(int id) { if (_classifiedService.IfExists(id)) { _classifiedService.SetClassifiedExpired(id); var classified = _classifiedService.GetById(id); return(classified); } else { throw new HttpResponseException(NotFoundMessage("لا يوجد إعلان يتبع لهذا الرقم")); } }