public IActionResult Register([FromBody] NewUserDTO newUser)
 {
     if (newUser == null)
     {
         return(BadRequest());
     }
     if (TryValidateModel(newUser))
     {
         if (_applicationUserService.GetApplicationUserByName(newUser.UserName) != null)
         {
             return(BadRequest("Username taken"));
         }
         var u = _applicationUserService.AddNewApplicationUser(newUser);
         if (u == null)
         {
             return(BadRequest());
         }
         return(Ok(u));
     }
     return(BadRequest(Errors));
 }