Example #1
0
        private string GetEmailAddress()
        {
            OfficeManagerController managerController = new OfficeManagerController();
            string emailAddress = managerController.GetEmailAddress();

            return(emailAddress);
        }
Example #2
0
        private bool AuthenticateEmailAddress(int id)
        {
            var opdInformation = GeneralController.GetHospitalExpense(Convert.ToInt32(id), _opdExpenseService, _opdExpensePatientService, _opdExpenseImageService);
            OfficeManagerController managerController = new OfficeManagerController();

            string currentEmailAddress = managerController.GetEmailAddress();

            if (currentEmailAddress.Equals(opdInformation.EmployeeEmailAddress))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }