API controller and the request send from react app.
When using FromForm only then getting null value
[Route("PotService")]
[HttpPost]
[Consumes("application/json")]
public IActionResult Post([FromForm] ServiceInfo serviceInfo)
{
//using (MemoryStream stream = new MemoryStream())
//{
// service.Images.CopyToAsync(stream);
//}
bool result = _serManager.AddService(serviceInfo);
return Ok(result);
}


Consumes("application/json")and then using[FromForm]. If you're expecting Json then use[FromBody].[FromForm]is for"application/x-www-url-formencoded"