private List<MainMenuItem> GetMenuItemByRoleID(int RoleID)
        {
            List<MainMenuItem> displayMenuItem = new List<MainMenuItem>();
            IRoleComponent role = new RoleComponent();
            List<ModuleControl> menuList = role.GetMenuItemsByRoleID(RoleID);

            foreach (ModuleControl module in menuList)
            {
                displayMenuItem.Add(new MainMenuItem() { Title = module.Title, ViewModel = Type.GetType(module.ModuleName) });
            }

            return displayMenuItem;
        }
        User IUserComponent.GetRecord(string loginID)
        {
            try
            {
                RoleComponent roleComponent = new RoleComponent();

                User user = userRepository.GetUserByLoginID(loginID);
                Role role = roleComponent.GetRoleWithAccessMatrixByID(user.RoleID);
                user.Role = role;

                return user;
            }
            catch (Exception ex)
            {
                //Insert error Logging/Handling Mechanism here
                throw ex;
            }
        }