private void RefreshSources(List <HistoryReputacion> history)
        {
            ClearDataGridView();
            var historyDictionary = new Dictionary <int, HistoryReputacion>();

            if (history == null)
            {
                //The datasource must be all the publications not calified records stored in the database
                _history          = CalificacionPersistance.getAllCalifiedToMe(SessionManager.CurrentUser);
                historyDictionary = _history.ToDictionary(a => a.Codigo_Calificacion, a => a);
                if (_history.Count > 0)
                {
                    lblPromedio.Text = _history.Average(x => x.Cantidad_Estrellas).ToString();
                }
            }
            else
            {
                //The datasource must be the list of publications not calified received as parameter
                historyDictionary = history.ToDictionary(a => a.Codigo_Calificacion, a => a);

                if (history.Count > 0)
                {
                    lblPromedio.Text = history.Average(x => x.Cantidad_Estrellas).ToString();
                }
            }

            var bind = historyDictionary.Values.Select(a => new
            {
                Calificacion       = a.Codigo_Calificacion,
                Descripcion        = a.Descripcion,
                Cantidad_Estrellas = a.Cantidad_Estrellas,
                Nombre             = a.Nombre
            });

            dgvHistory.DataSource          = bind.ToList();
            dgvHistory.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dgvHistory.CurrentCell         = null;
        }