public async Task <IActionResult> OnPublish([FromForm] string name) { var response = await _streamService.PublishStream(name); if (response.Success) { return(Redirect(response.StreamName)); } else { return(BadRequest()); } }