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