diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-18 23:52:15 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-18 23:52:15 +0200 |
| commit | b81cdf3b60914e821de6a3ad35dc2af6637bca0c (patch) | |
| tree | fe86eea7467f29572514059d2c5ab39522cee4dd /src/DevHive.Web/Controllers/UserController.cs | |
| parent | f0398cf1b7e6477bbd184e7509a1030054fc1926 (diff) | |
| download | DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar.gz DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.zip | |
Fixed default(x) to null
Diffstat (limited to 'src/DevHive.Web/Controllers/UserController.cs')
| -rw-r--r-- | src/DevHive.Web/Controllers/UserController.cs | 3 |
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; |
