aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web
diff options
context:
space:
mode:
Diffstat (limited to 'ExamTemplate/Web')
-rw-r--r--ExamTemplate/Web/Controllers/AccountController.cs6
-rw-r--r--ExamTemplate/Web/Startup.cs3
2 files changed, 5 insertions, 4 deletions
diff --git a/ExamTemplate/Web/Controllers/AccountController.cs b/ExamTemplate/Web/Controllers/AccountController.cs
index a7ad771..b7a1207 100644
--- a/ExamTemplate/Web/Controllers/AccountController.cs
+++ b/ExamTemplate/Web/Controllers/AccountController.cs
@@ -1,4 +1,4 @@
-using ExamTemplate.Services;
+using ExamTemplate.Services.Interfaces;
using Microsoft.AspNetCore.Mvc;
using ExamTemplate.Web.Models.User;
using AutoMapper;
@@ -12,9 +12,9 @@ namespace ExamTemplate.Web.Controllers
public class AccountController : Controller
{
private readonly IMapper _autoMapper;
- private readonly UserService _userService;
+ private readonly IUserService _userService;
- public AccountController(IMapper autoMapper, UserService userService)
+ public AccountController(IMapper autoMapper, IUserService userService)
{
this._autoMapper = autoMapper;
this._userService = userService;
diff --git a/ExamTemplate/Web/Startup.cs b/ExamTemplate/Web/Startup.cs
index 691d60f..d627c52 100644
--- a/ExamTemplate/Web/Startup.cs
+++ b/ExamTemplate/Web/Startup.cs
@@ -4,6 +4,7 @@ using ExamTemplate.Common;
using ExamTemplate.Data;
using ExamTemplate.Data.Models;
using ExamTemplate.Services;
+using ExamTemplate.Services.Interfaces;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
@@ -38,7 +39,7 @@ namespace ExamTemplate.Web
cloudName: this.Configuration.GetSection("Cloud").GetSection("cloudName").Value,
apiKey: this.Configuration.GetSection("Cloud").GetSection("apiKey").Value,
apiSecret: this.Configuration.GetSection("Cloud").GetSection("apiSecret").Value));
- services.AddTransient<UserService>();
+ services.AddTransient<IUserService, UserService>();
/*
* Database configuration