Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Commit

Permalink
Refactor query context again
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jun 4, 2019
1 parent dd9f7cc commit 466041d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BioEngine.Core.API/ResponseRestController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public virtual async Task<ActionResult<int>> CountAsync([FromQuery] int limit =
return Ok(result);
}

protected IQueryContext<TEntity> GetQueryContext(int limit, int offset, string order, string filter)
protected QueryContext<TEntity> GetQueryContext(int limit, int offset, string order, string filter)
{
var context = HttpContext.RequestServices.GetRequiredService<IQueryContext<TEntity>>();
var context = new QueryContext<TEntity>();
if (limit > 0)
{
context.Limit = limit;
Expand Down

0 comments on commit 466041d

Please sign in to comment.