public Dictionary <string, object> GETDefaultOutput() { WSSolar solar = new WSSolar(); Dictionary <string, object> result = solar.GetGCSolarOutput(); return(result); }
public async Task <IActionResult> GETDefaultOutput() { WSSolar solar = new WSSolar(); Dictionary <string, object> result = await solar.GetGCSolarOutput(); return(new ObjectResult(result)); }
public Dictionary <string, object> POSTCustomInput([FromBody] SolarInput input) { WSSolar solar = new WSSolar(); if (input is null) { Dictionary <string, object> errorMsg = new Dictionary <string, object>() { { "Input Error:", "No inputs found in the request or inputs contain invalid formatting." } }; return(errorMsg); } else { Dictionary <string, object> result = solar.GetGCSolarOutput(input.input); return(result); } }