private static IFormCollection GetParameters(IFormCollection parameters) { if (!parameters.Any()) { throw new ArgumentException($"{parameters.GetType().Name} does not contain any parameter."); } return(parameters); }