public IEnumerable <TCustomModel> Find <TCustomModel>(int page = 1, int rows = 50, DateTime?modifiedSince = null, string where = null, string sort = null) where TCustomModel : class { var fields = FieldMapper.GetFields(typeof(TCustomModel)); return(Client.Get <IEnumerable <TCustomModel> >(EndpointUrl, new QueryBuilder(page, rows, fields, modifiedSince, where, sort))); }
public TCustomModel Find <TCustomModel>(int id) where TCustomModel : class { var fields = FieldMapper.GetFields(typeof(TCustomModel)); return(Client.Get <TCustomModel>(EndpointUrl + "/" + id, new QueryBuilder(fields: fields))); }