Zaz.Server.Advanced.Service.CommandsService.BindFormToCommand C# (CSharp) 메소드

BindFormToCommand() 개인적인 정적인 메소드

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