Split the individual repository interfaces to their own classes.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using LibraryApp.Domain.Entities;
|
||||
|
||||
namespace LibraryApp.Domain.Repositories;
|
||||
|
||||
public interface IShelfRepository
|
||||
{
|
||||
public Task<Result<Shelf>> GetAsync(ShelfId id);
|
||||
public Task<Result<Shelf>> GetByBookInstanceBarcodeAsync(BookInstanceBarcode barcode);
|
||||
public Task<Result<Shelf>> GetNextForCountAsync();
|
||||
public Task<Result<Shelf>> UpdateAsync(Shelf shelf);
|
||||
public Task<Result<List<Shelf>>> GetAllAsync(int pageNumber, int pageSize);
|
||||
public Task<Result<Shelf>> AddAsync(Shelf shelf);
|
||||
public Task<Result> DeleteAsync(ShelfId id);
|
||||
}
|
||||
Reference in New Issue
Block a user