Пример #1
0
        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);
        }
Пример #2
0
        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"]);
        }