Renamed model repo to provider + provider registration check

This commit is contained in:
2024-11-23 15:29:46 +01:00
parent beac2aa20c
commit f8995ca990
12 changed files with 31 additions and 29 deletions

View File

@@ -4,7 +4,7 @@ using RestApiTest.Models;
namespace FrontendTest.Providers;
public class EmployeeProvider(DatabaseContext context) : ModelRepository<Employee> {
public class EmployeeProvider(DatabaseContext context) : ModelProvider<Employee> {
public override async Task<IEnumerable<Employee>> ReadAll() {
return await context.Employees