Hello all!
What is the difference between these two examples of code?
public IActionResult Get()
{
return Content(result, "application/xml");
}
[Produces("application/xml")] public IActionResult Get() { return Content(result); }
Thank you!
Hello all!
What is the difference between these two examples of code?
public IActionResult Get()
{
return Content(result, "application/xml");
}
[Produces("application/xml")] public IActionResult Get() { return Content(result); }
Thank you!