Exemple #1
0
        protected static OrchestratorResponse <T> GetOrchestratorResponse <T>(string code, T viewModel = default(T), ValidationResult validationResult = null, object parameters = null)
        {
            var response = new OrchestratorResponse <T>
            {
                Code             = code,
                ViewModel        = viewModel,
                ValidationResult = validationResult,
                Parameters       = parameters
            };

            return(response);
        }
Exemple #2
0
        protected static OrchestratorResponse GetOrchestratorResponse(string code, string message, UserMessageLevel level, object parameters = null)
        {
            var response = new OrchestratorResponse
            {
                Code    = code,
                Message = new OrchestratorResponseMessage
                {
                    Text  = message,
                    Level = level
                },
                Parameters = parameters
            };

            return(response);
        }