I'm getting this error, while running the application:
System.InvalidOperationException: 'Action 'ProjectAPI.Controllers.UserController.CreatePasswordHash (TravelMoreAPI)' has more than one parameter that was specified or inferred as bound from request body. Only one parameter per action may be bound from body. Inspect the following parameters, and use 'FromQueryAttribute' to specify bound from query,
'FromRouteAttribute' to specify bound from route, and 'FromBodyAttribute' for parameters to be bound from body:
Byte[]& passwordHash
Byte[]& passwordSalt'
This is my CreatePasswordHash method :
public void CreatePasswordHash(string password, out byte[] passwordHash, out byte[] passwordSalt)
{
using (var hmac = new HMACSHA512())
{
passwordSalt = hmac.Key;
passwordHash = hmac.ComputeHash(System.Text.Encoding.UTF8.GetBytes(password));
}
}