public void DeleteConsumer([FromQuery] string consumerName) { EnsureAdmin(); if (string.IsNullOrEmpty(consumerName)) { throw new Exception("Need to supply a consumer name when calling DeleteConsumer(string consumerName)"); } _consumerService.DeleteConsumer(consumerName); }