20 lines
575 B
C#
20 lines
575 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using LCU.Shared.Collections.RepoApiLib.Models;
|
|
using LCU.Shared.Collections.RepoApiLib.Persistence;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace LCU.Shared.Collections.RepoApiLib.Repositories
|
|
{
|
|
public class LetterRepository : BaseRepository, ILetterRepository
|
|
{
|
|
public LetterRepository(AppDbContext context) : base(context)
|
|
{
|
|
}
|
|
|
|
public async Task<IEnumerable<Letter>> ListAsync()
|
|
{
|
|
return await _context.Letters.ToListAsync();
|
|
}
|
|
}
|
|
} |