diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 16:04:48 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 16:04:48 +0300 |
| commit | e31d09d1ef195bbcc1f8455d58f401125a3050a9 (patch) | |
| tree | 645ad8a63face3b306abc8ca8d68d1f46703ff84 /ExamTemplate/Web/Startup.cs | |
| parent | 2b1bfcd50bfc34762f8a2ed57d5099037062bd75 (diff) | |
| download | it-kariera-exam-template-e31d09d1ef195bbcc1f8455d58f401125a3050a9.tar it-kariera-exam-template-e31d09d1ef195bbcc1f8455d58f401125a3050a9.tar.gz it-kariera-exam-template-e31d09d1ef195bbcc1f8455d58f401125a3050a9.zip | |
Implemented interfaces for services in add feature template; Added an interfaces for UserService
Diffstat (limited to 'ExamTemplate/Web/Startup.cs')
| -rw-r--r-- | ExamTemplate/Web/Startup.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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
|
