Files
monorepo/LCU.API.Internal.MemberPreferencesApi/LCU.API.Internal.MemberPreferencesApiLib/Repositories/DnaAuditProcessRepository.cs
T
2026-03-31 16:43:12 -05:00

24 lines
738 B
C#

using LCU.API.Internal.MemberPreferencesApiLib.Persistence;
using LCU.Library.Internal.MemberPreferencesApiModels.Entities;
using Microsoft.EntityFrameworkCore;
namespace LCU.API.Internal.MemberPreferencesApiLib.Repositories;
public class DnaAuditProcessRepository : BaseRepository, IDnaAuditProcessRepository
{
public DnaAuditProcessRepository(IApplicationDbContext context) : base(context)
{
}
public async Task<IReadOnlyCollection<DnaAuditProcess>> GetAllDnaAuditProcesses()
{
return await _context.DnaAuditProcesses.ToListAsync();
}
public async Task Update(DnaAuditProcess existing)
{
_context.DnaAuditProcesses.Update(existing);
await _context.SaveChangesAsync();
}
}