publicActionResultGetBitrateTestBytes([FromQuery][Range(1,100_000_000,ErrorMessage="The requested size must be greater than or equal to {1} and less than or equal to {2}")]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}).");