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"]); }
public static IEnumerable<MemberInfo> GetMember(this Type type, string name, Aqua.TypeSystem.MemberTypes memberType, BindingFlags bindingFlags) { var t = (MemberTypes)memberType; return type.GetMember(name, t, bindingFlags); }