private string GetName() { OfficeManagerController managerController = new OfficeManagerController(); string name = managerController.GetName(); return(name); }
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(); }