public static myMessage GetLayer() { Type trp = System.Web.Compilation.BuildManager.GetType(MODULE_NAME, true); myMessage de = (myMessage)Activator.CreateInstance(trp); return(de); }
public static string SendAnEmail(string sMySubject, System.Text.StringBuilder body, string sFromSender, string sRecipient) { myMessage se = myMessageHelper.GetLayer(); return(se.SendEmail(sMySubject, body, sFromSender, sRecipient)); }