refactor db access
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-05-18 00:53:29 +02:00
parent 4b993aa4e8
commit 0bba2d2faf
8 changed files with 51 additions and 161 deletions

View File

@@ -1,7 +1,4 @@
using HanyadikHetVan.Data;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.Interface;
using HanyadikHetVan.Repository;
using HanyadikHetVan.Services;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
@@ -30,8 +27,6 @@ namespace HanyadikHetVan
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));
services.AddTransient<IRepository<Pause>, PauseRepository>();
services.AddTransient<IRepository<WeeklyTimeSpan>, WeeklyTimeSpanRepository>();
services.AddTransient<WeeklyTimeSpanService>();
services.AddTransient<PauseService>();
services.AddTransient<HanyadikHetVanJsonService>();