public DefaultSearchEntity GetShowhidePanelByUserId(UserEntity user, string currentPage) { if (user != null) { _commonDataAccess = new CommonDataAccess(_context); return(_commonDataAccess.GetShowhidePanelByUserId(user.UserId, currentPage)); } return(null); }