Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / UserController.cs
diff options
context:
space:
mode:
Commit09c8fc48a6a49c3c36df69ba2747088ac652054b (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-15 10:23:46 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-15 10:23:46 +0200
Files9b25a521cf3effb63d1a06eb8496475eb201b8aa /src/DevHive.Web/Controllers/UserController.cs
DevHive-09c8fc48a6a49c3c36df69ba2747088ac652054b.tar
DevHive-09c8fc48a6a49c3c36df69ba2747088ac652054b.tar.gz
DevHive-09c8fc48a6a49c3c36df69ba2747088ac652054b.zip
Parent86800d2c5bcee9aae5162eb71c846ca5f91df761 (diff)
Changed object to Guid in IRepository
1 files changed, 4 insertions, 4 deletions
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs8
diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs
index d8f078f..14ecb73 100644
--- a/src/DevHive.Web/Controllers/UserController.cs
+++ b/src/DevHive.Web/Controllers/UserController.cs
@@ -2,7 +2,6 @@ using System;
using System.Threading.Tasks;
using AutoMapper;
using DevHive.Data.Repositories;
-using DevHive.Services.Models.Identity;
using DevHive.Services.Options;
using DevHive.Services.Services;
using DevHive.Web.Models.Identity.User;
@@ -19,15 +18,16 @@ namespace DevHive.Web.Controllers
public UserController(DevHiveContext context, IMapper mapper, JWTOptions jwtOptions)
{
- //this._service = new UserService(context, mapper, jwtOptions);
+ this._service = new UserService(context, mapper, jwtOptions);
}
[HttpPost]
[Route("Login")]
public async Task<IActionResult> Login([FromBody] LoginWebModel loginWebModel)
{
- //return await this._service.LoginUser(loginDTO);
- throw new NotImplementedException();
+ var loginDTO =
+ return await this._service.LoginUser(loginDTO);
+ //throw new NotImplementedException();
}
[HttpPost]