New Feature Stats (#1179)
* When searching, search against normalized names. * Added new stat fields
This commit is contained in:
parent
fbb8934eef
commit
0622d8a874
8 changed files with 80 additions and 16 deletions
|
|
@ -25,6 +25,7 @@ public interface IReadingListRepository
|
|||
void Remove(ReadingListItem item);
|
||||
void BulkRemove(IEnumerable<ReadingListItem> items);
|
||||
void Update(ReadingList list);
|
||||
Task<int> Count();
|
||||
}
|
||||
|
||||
public class ReadingListRepository : IReadingListRepository
|
||||
|
|
@ -43,6 +44,11 @@ public class ReadingListRepository : IReadingListRepository
|
|||
_context.Entry(list).State = EntityState.Modified;
|
||||
}
|
||||
|
||||
public async Task<int> Count()
|
||||
{
|
||||
return await _context.ReadingList.CountAsync();
|
||||
}
|
||||
|
||||
public void Remove(ReadingListItem item)
|
||||
{
|
||||
_context.ReadingListItem.Remove(item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue