private void SendEmailToAuthorityOnRequest(string voucherId, string authorityLevel) { List <string> recepientEmailAdd = new List <string>(); if (authorityLevel == "Manager") { List <StaffEF> managers = staffService.FindStaffByRole(5); foreach (var manager in managers) { recepientEmailAdd.Add(manager.Email); } } else if (authorityLevel == "Supervisor") { List <StaffEF> sups = staffService.FindStaffByRole(4); foreach (var s in sups) { recepientEmailAdd.Add(s.Email); } } foreach (string e in recepientEmailAdd) { Email.SendEmail(e, "Adjustment Voucher #" + voucherId + " : Pending Review", "Adjustment Voucher #" + voucherId + " requires review."); } }