This commit is contained in:
Jamie.Rees 2017-06-06 11:25:58 +01:00
commit 9f575d1e64
14 changed files with 45 additions and 2517 deletions

View file

@ -12,7 +12,6 @@ namespace Ombi.Store.Repository
RequestBlobs Get(int id);
IEnumerable<RequestBlobs> GetAll();
Task<IEnumerable<RequestBlobs>> GetAllAsync();
Task<IEnumerable<RequestBlobs>> GetAllAsync(int count, int position);
Task<RequestBlobs> GetAsync(int id);
RequestBlobs Insert(RequestBlobs entity);
Task<RequestBlobs> InsertAsync(RequestBlobs entity);

View file

@ -62,18 +62,6 @@ namespace Ombi.Store.Repository
//}, 5);
//return item;
}
public async Task<IEnumerable<RequestBlobs>> GetAllAsync(int count, int position)
{
//var key = "GetAll";
//var item = await Cache.GetOrSetAsync(key, async () =>
//{
var page = await Db.Requests.ToListAsync().ConfigureAwait(false);
return page.Skip(position).Take(count);
//}, 5);
//return item;
}
public RequestBlobs Get(int id)
{