private static object BindFormToCommand(IDictionary<string, string> form, Type cmdType)
{
try
{
var binder = new CommandBinder();
return binder.Build(cmdType, form);
}
catch (InvalidOperationException ex)
{
throw ExceptionsFactory.CreateApiException("Problems with binding command data. " + ex.Message);
}
}