private Template GetTempFromPharmacy(Notification.NotificationType type) { Template temp = null; pharmacy.GetTemplates(); switch (type) { case Notification.NotificationType.Refill: temp = pharmacy.GetRefillTemplate(); break; case Notification.NotificationType.Recall: temp = pharmacy.GetRecallTemplate(); break; case Notification.NotificationType.Ready: temp = pharmacy.GetReadyTemplate(); break; case Notification.NotificationType.Birthday: temp = pharmacy.GetBirthdayTemplate(); break; } return(temp); }