public HttpResponseMessage PostLegacy(HttpRequestMessage req)
{
var body = req.Content.ReadAsStringAsync().Result;
var form = ParseQueryString(body);
if (!form.ContainsKey("Zaz-Command-Id"))
{
throw ExceptionsFactory.CreateApiException("Required value 'Zaz-Command-Id' was not found.");
}
var cmdKey = form["Zaz-Command-Id"];
var cmdType = _resolver.ResolveCommandType(cmdKey);
var cmd = BindFormToCommand(form, cmdType);
return _runner.RunCommand(cmdKey, cmd, new string[0]);
}