title: The Input was not valid
body: <p>While calling an apiController method from Postman I encountered a problem. </p>
  
  <p>the method with params mentioned in Postman client call below method</p>
  
  <pre><code>    [AllowAnonymous]
      [HttpPost]
      public IActionResult Register([FromBody]UserDto userDto)
      {
          // map dto to entity
          //var user = _mapper.Map&lt;User&gt;(userDto);
          return Ok(new
          {
              userDto
          });
  
          //try
          //{
          //    // save 
          //    _userService.Create(user, userDto.Password);
          //    return Ok();
          //}
          //catch (AppException ex)
          //{
          //    // return error message if there was an exception
          //    return BadRequest(new { message = ex.Message });
          //}
      }
  </code></pre>
  
  <p>which maps the UserDto..</p>
  
  <pre><code>public class UserDto
  {
      public int Id { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Username { get; set; }
      public string Password { get; set; }
  }
  </code></pre>
  
  <p>but instead I get the error below :</p>
  
  <p><img src="https://i.stack.imgur.com/6i5jt.png" alt="Postman Client"></p>