begin implementing quotes repository and controller

This commit is contained in:
StevanFreeborn
2022-06-22 11:28:44 -05:00
parent 8533869b31
commit 2cbab773d0
5 changed files with 109 additions and 0 deletions
@@ -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();
}
}
}