Пример #1
0
        public IHttpActionResult LoadEmailTemplateDetails(string templateId)
        {
            DataSet emailTemplateDs = EmailTemplatesRepository.GetEmailTemplates();

            if (emailTemplateDs.Tables.Count > 0)
            {
                DataTable emailTemplateDt = emailTemplateDs.Tables[0].Copy();
                DataTable dt = emailTemplateDt.Select("EmailTemplateId='" + Guid.Parse(templateId) + "'").CopyToDataTable();
                return(Ok(dt));
            }
            return(Ok(string.Empty));
        }
Пример #2
0
        public IHttpActionResult GetEmailTemplates()
        {
            DataSet ds = EmailTemplatesRepository.GetEmailTemplates();

            return(Ok(ds));
        }