public ActionResult GetContent(MessageTemplateType type, MessageTemplateMedia media)
 {
     using (var service = new MessageTemplateService())
     {
         var template = service.Get(User.Pharmacy, type, media);
         return(Content(template.Content));
     }
 }
 public ActionResult SaveTemplate(MessageTemplateType type, MessageTemplateMedia media, string content)
 {
     using (var service = new MessageTemplateService())
     {
         var template = service.Get(User.Pharmacy, type, media);
         template.Content = content;
         service.Update(template);
     }
     return(null);
 }