public AdDetailsModel FetchAdDetails(int AdId) { AdDetailsModel modelObj = new AdDetailsModel(); AdDetailsEntity EntityObj = new AdDetailsEntity(); ServiceLayer.InformationService obj = new InformationService(); InformationObjectMapper ObjMapper = new InformationObjectMapper(); EntityObj = obj.FetchAdDetails(AdId); modelObj = ObjMapper.MapAdDetailsEntityToModel(EntityObj); return(modelObj); }