private void SendEmailAndSMS(AnnouncementViewModel viewModel) { // send bulk email if flag is true if (viewModel.SendEmail) { _service.SendBulkEmailToAllDeacons(viewModel, User.Identity.Name); } // send bulk SMS if flag is true if (viewModel.SendSMS) { // send title as text message _service.SendBulkSMSToAllDeacons(viewModel.Title); } }