protected void Page_Load(object sender, EventArgs e)
        {
            var missionsDal = new MissionsDal();
            lblCrewNumber.Text = (new UsersDal()).GetUsersCount().ToString(CultureInfo.InvariantCulture);
            lblInProgressMissionsCount.Text = missionsDal.GetMissionsCountByStatus(MissionStatus.InProgress).ToString(CultureInfo.InvariantCulture);
            lblCompletedMissions.Text = missionsDal.GetMissionsCountByStatus(MissionStatus.Completed).ToString(CultureInfo.InvariantCulture);

            var stageDate = (new StagesDal()).GetNextStageDate();
            if (stageDate != null)
            {
                lblNextStageDate.Text = ((DateTime) stageDate).ToLongDateString();
            }
            else
            {
                lblNextStageDate.Text = "Not Available";
            }
        }
        private void ReloadData()
        {
            var dal = new MissionsDal();
            var isAccessibleForModerateMissions = AuthProvider.IsUserInRole(Session, AuthRoles.SystemAdmin) ||
                                                AuthProvider.IsUserInRole(Session, AuthRoles.Admin) ||
                                                AuthProvider.IsUserInRole(Session, AuthRoles.Moderator);

            GridViewMissionsList.DataSource = isAccessibleForModerateMissions ? dal.GetAllMissionsList() : dal.GetMissionsListByUser(AuthProvider.UserKey(Session));
            GridViewMissionsList.DataBind();

            lblPendingMissionsCount.Text = dal.GetMissionsCountByStatus(MissionStatus.Pending).ToString(CultureInfo.InvariantCulture);
        }