From 1d813cd8e099306ba0cabf90031ea4c4b24827bb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 15 Dec 2020 09:49:39 +0200 Subject: Implemented web models and updated user controller --- src/DevHive.Web/Controllers/UserController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/DevHive.Web/Controllers/UserController.cs') diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs index 84231d1..d8f078f 100644 --- a/src/DevHive.Web/Controllers/UserController.cs +++ b/src/DevHive.Web/Controllers/UserController.cs @@ -5,6 +5,7 @@ using DevHive.Data.Repositories; using DevHive.Services.Models.Identity; using DevHive.Services.Options; using DevHive.Services.Services; +using DevHive.Web.Models.Identity.User; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -23,7 +24,7 @@ namespace DevHive.Web.Controllers [HttpPost] [Route("Login")] - public async Task Login([FromBody] LoginServiceModel loginServiceModel) + public async Task Login([FromBody] LoginWebModel loginWebModel) { //return await this._service.LoginUser(loginDTO); throw new NotImplementedException(); @@ -31,7 +32,7 @@ namespace DevHive.Web.Controllers [HttpPost] [Route("Register")] - public async Task Register([FromBody] RegisterServiceModel registerServiceModel) + public async Task Register([FromBody] RegisterWebModel registerWebModel) { //return await this._service.RegisterUser(registerDto); throw new NotImplementedException(); @@ -48,7 +49,7 @@ namespace DevHive.Web.Controllers //Update [HttpPut] [Authorize] - public async Task Update(Guid id, [FromBody] UpdateUserServiceModel updateUserServiceModel) + public async Task Update(Guid id, [FromBody] UpdateUserWebModel updateUserWebModel) { //return await this._service.UpdateUser(id, userDTO); throw new NotImplementedException(); -- cgit v1.2.3