public static List <INavigationPO> GetMenuItem(HttpSessionStateBase session) { IUserPO curUser = new UserPO(); curUser = GetCurrentUserID(session, curUser); List <INavigationPO> menutItems = NavigationMapper.MapListOfBOsToListOfPOs(NavigationBusinessLogic.NavReOrder(NavigationMapper.MapListOfDOsToListOfBOs(NavigationDataAccess.GetNavigationItemsByRoleID(curUser.RoleID_FK)), curUser.UserID));//loggedUSer.RoleID_FK //TODO: Implement AutoMapper List<INavigationPO> menutItems = Mapper.Map<List<INavigationBO>, List<INavigationPO>>(NavigationBusinessLogic.NavReOrder(menus,curUser.UserID));//loggedUSer.RoleID_FK return(menutItems); }
// Start is called before the first frame update void Start() { if (nm == null) { nm = GameObject.FindObjectOfType <NavigationMapper>(); } waypoints = nm.GetWaypoints(); startNode = nm.GetSNode(); endNode = nm.GetENode(); print("Start node index: " + startNode + " End node index: " + endNode); FindShortestPath(); GenerateSP(); PrintShortestPath(); }