Example #1
0
        /// <summary>
        /// Calls into the Solar module and sets the Common variables using the input object and returns the data based on those inputs.
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <Dictionary <string, object> > GetGCSolarOutput(Dictionary <string, object> input)
        {
            GCSolar       gcS    = new GCSolar();
            List <string> errors = new List <string>();

            gcS.SetCommonVariables(input, out errors);
            if (errors.Count > 0)
            {
                return(new Dictionary <string, object>()
                {
                    { "Input Errors", errors }
                });
            }
            return(gcS.GetOutput());
        }
Example #2
0
        /// <summary>
        /// Calls into the Solar module and gets the default data,
        /// equivalent to selecting the third option from the windows start form.
        /// </summary>
        /// <returns></returns>
        public async Task <Dictionary <string, object> > GetGCSolarOutput()
        {
            GCSolar gcS = new GCSolar();

            return(gcS.GetOutput());
        }