Zaz.Server.Advanced.Service.CommandsService.BindFormToCommand C# (CSharp) Method

BindFormToCommand() private static method

private static BindFormToCommand ( string>.IDictionary form, Type cmdType ) : object
form string>.IDictionary
cmdType System.Type
return object
        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);
            }
        }