public JsonNetResult LoadTemplate(string id)
{
var template = _templateRepository.Queryable.Where(a => a.NotificationType.Id == id && a.IsActive).OrderByDescending(a => a.Id).FirstOrDefault();
if (template == null)
{
return new JsonNetResult(string.Empty);
}
return new JsonNetResult(template.BodyText);
}