public ActionResult Index() { var result = new CommandFactory().GetCommand(CommandFactory.MetadataCommand).Run( Request.ToHttpRequestData(), Options); result.ApplyHeaders(Response); if (result.HandledResult) { throw new NotSupportedException("The MVC controller doesn't support setting CommandResult.HandledResult."); } return(result.ToActionResult()); }