aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-18 23:52:15 +0200
committertranstrike <transtrike@gmail.com>2021-01-18 23:52:15 +0200
commitb81cdf3b60914e821de6a3ad35dc2af6637bca0c (patch)
treefe86eea7467f29572514059d2c5ab39522cee4dd /src/DevHive.Web/Controllers
parentf0398cf1b7e6477bbd184e7509a1030054fc1926 (diff)
downloadDevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar
DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar.gz
DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.zip
Fixed default(x) to null
Diffstat (limited to 'src/DevHive.Web/Controllers')
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs
index bba55e8..a306007 100644
--- a/src/DevHive.Web/Controllers/UserController.cs
+++ b/src/DevHive.Web/Controllers/UserController.cs
@@ -90,6 +90,9 @@ namespace DevHive.Web.Controllers
if (!await this._userService.ValidJWT(id, authorization))
return new UnauthorizedResult();
+ // if (!ModelState.IsValid)
+ // return BadRequest("Not a valid model!");
+
UpdateUserServiceModel updateUserServiceModel = this._userMapper.Map<UpdateUserServiceModel>(updateModel);
updateUserServiceModel.Id = id;