Esempio n. 1
0
        private string GetEmailAddress()
        {
            OfficeManagerController managerController = new OfficeManagerController();
            string emailAddress = managerController.GetEmailAddress();

            return(emailAddress);
        }
Esempio n. 2
0
        private string GetName()
        {
            OfficeManagerController managerController = new OfficeManagerController();
            string name = managerController.GetName();

            return(name);
        }
Esempio n. 3
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);
            }
        }
Esempio n. 4
0
        private void AuthenticateUser()
        {
            OfficeManagerController managerController = new OfficeManagerController();

            UserAuthorization user = new UserAuthorization(_opdExpenseService);

            string userRoll = user.AuthenticateUser();

            if (user.ValidateEmailAddressManagerTravelApproval())
            {
                ViewBag.RollTypeTravel = "MANTRAVEL";
            }

            ViewBag.RollType = userRoll;
            ViewBag.UserName = managerController.GetName();
        }