public EmailSource Get(string resourceId, Guid workspaceId, Guid dataListId)
{
var result = new EmailSource();
try
{
var xmlStr = ResourceCatalog.Instance.GetResourceContents(workspaceId, Guid.Parse(resourceId)).ToString();
if(!string.IsNullOrEmpty(xmlStr))
{
var xml = XElement.Parse(xmlStr);
result = new EmailSource(xml);
}
}
catch(Exception ex)
{
RaiseError(ex);
}
return result;
}