public ModelCollection <T> ListProperties <T>(PropertyQuery query, bool getCount = false) where T : PropertyEntity { ModelCollection <T> list = _propertyDataProvider.ListProperties <T>(query, getCount); list.Paging.Page = query.Page; list.Paging.MaxPerPage = query.MaxPerPage; return(list); }
public static ModelCollection <PropertyEntity> ListProperties(this IPropertyService propertyService, PropertyQuery query, bool getCount = false) { return(propertyService.ListProperties <PropertyEntity>(query, getCount)); }