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