initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.NotifyConsole / Models / Partials / WebcastPurchaseDataResult.cs
1 /*
2 Developer: Tyler Allen
3 Date Created: 08/24/2016
4 ---------------------------------------------------
5 */
6
7 using CPE.App.NotifyConsole.Helpers;
8
9 // ReSharper disable once CheckNamespace
10
11 namespace CPE.App.NotifyConsole.Models {
12     public partial class WebcastPurchaseDataResult {
13         private string _webcastEmail;
14
15         public string EmailBody {
16             get {
17                 if(_webcastEmail == null) {
18                     var certificateUrl = EmailRenderHelper.RenderCertificateLink(Sco, pDate, Ticket);
19                     _webcastEmail = EmailRenderHelper.RenderWebcastEmail(certificateUrl);
20                 }
21                 return _webcastEmail;
22             }
23         }
24     }
25 }