Esempio n. 1
0
        public JsonResult InsertAttachmentText(string html, string values)
        {
            string res = "";
            Ctx    ct  = Session["ctx"] as Ctx;

            List <Dictionary <string, string> > value = JsonConvert.DeserializeObject <List <Dictionary <string, string> > >(values);

            EmailModel model = new EmailModel(ct);

            res = model.HtmlToPdf(Server.HtmlDecode(html), value);
            return(Json(JsonConvert.SerializeObject(res), JsonRequestBehavior.AllowGet));
        }