publicActionResultGetBitrateTestBytes([FromQuery][Range(1,100_000_000,ErrorMessage="The requested size must be greater than 0 and less than 100,000,000")]intsize=102400)
{
constintMaxSize=10_000_000;
if(size<=0)
{
returnBadRequest($"The requested size ({size}) is equal to or smaller than 0.");
}
if(size>MaxSize)
{
returnBadRequest($"The requested size ({size}) is larger than the max allowed value ({MaxSize}).");