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