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