title: How can I change the parameter name in the request body?
body: <p>I have this model 'LoginModel'.</p>
  
  <pre><code>public class LoginModel
  {
      public string UserName { get; set; }
      public string Pssd { get; set; }
  }
  </code></pre>
  
  <p>I use this class on the controller tho get the values from the body like this.</p>
  
  <pre><code>public object CheckLogin([FromBody]LoginModel logModel){}
  </code></pre>
  
  <p>So to be able to get the values I have to put this in the request.</p>
  
  <pre><code>{
    "UserName": "username",
    "Pssd": "password"
  }
  </code></pre>
  
  <p>I want the parameter 'Pssd' to be 'Password' while keeping Pssd as its method name. I've already tried to use these attributes but it still doesn't work. When I replace Pssd to Password inside the request body,  its value becomes null.</p>
  
  <pre><code>    [JsonProperty("Password")]
      [JsonProperty(PropertyName = "Password")]
      [Display(Name = "Password")]
      [DataMember(Name = "Password")]
  </code></pre>
  
  <p>I also tried removing [FromBody] but it still doesn't work.</p>