begin implementing quotes repository and controller
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using server.Models;
|
||||
|
||||
namespace server.Persistence.Repositories
|
||||
{
|
||||
public interface IQuoteRepository
|
||||
{
|
||||
Task<List<Quote>> GetQuotesAsync(QuoteFilter filter);
|
||||
Task<Quote> GetQuoteByIdAsync(int id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using server.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace server.Persistence.Repositories
|
||||
{
|
||||
public class QuoteRepository : IQuoteRepository
|
||||
{
|
||||
private readonly IDbContext _context;
|
||||
|
||||
public QuoteRepository(IDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
// TODO: Implement GetQuotesAsync() method.
|
||||
public Task<List<Quote>> GetQuotesAsync(QuoteFilter filter)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
// TODO: Implement GetQuoteByIdAsync() method.
|
||||
public Task<Quote> GetQuoteByIdAsync(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user