From b81cdf3b60914e821de6a3ad35dc2af6637bca0c Mon Sep 17 00:00:00 2001 From: transtrike Date: Mon, 18 Jan 2021 23:52:15 +0200 Subject: Fixed default(x) to null --- src/DevHive.Web/Controllers/UserController.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/DevHive.Web') 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(updateModel); updateUserServiceModel.Id = id; -- cgit v1.2.3