I am using .net core web api but I can not receive json data.
public async Task<IActionResult>PostAsync(string username,string password)
{
}
the username=null and password is null .
someone tell me should add [FromBody] but I can only add one.
and I do not want to put the parameter in a class object.
I only want to use the seperate parameter.









