diff options
| Commit | b81cdf3b60914e821de6a3ad35dc2af6637bca0c (patch) | |
|---|---|---|
| Author | 2021-01-18 23:52:15 +0200 | |
| Committer | 2021-01-18 23:52:15 +0200 | |
| Files | fe86eea7467f29572514059d2c5ab39522cee4dd /src/DevHive.Web/Controllers | |
| DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.tar.gz DevHive-b81cdf3b60914e821de6a3ad35dc2af6637bca0c.zip | ||
| Parent | f0398cf1b7e6477bbd184e7509a1030054fc1926 (diff) | |
Fixed default(x) to null
1 files changed, 3 insertions, 0 deletions
| -rw-r--r-- | src/DevHive.Web/Controllers/UserController.cs | 3 |
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; |
