public async Task <string> SubmitAquaTheme([FromBody] Dictionary <string, string> props) { var aqua = new Aqua(props["SiteName"]); aqua.FillProps(props); var res = await service.GenerateHtmlResponse(aqua); return(res); }
public async Task <string> UpdateAquaTheme([FromBody] Dictionary <string, string> props) { var aqua = new Aqua(props["SiteName"] as string); aqua.FillProps(props); var res = await service.GenerateImageForHTML(aqua.TransformText()); var dict = JsonConvert.DeserializeObject <Dictionary <string, string> >(res); return(dict["url"]); }