GetMattersData() public method

Fills matters data dictionary.
public GetMattersData ( int minimumSelectedMatters, int maximumSelectedMatters, bool>.Func filter, string submitName ) : object>.Dictionary
minimumSelectedMatters int /// The minimum selected matters. ///
maximumSelectedMatters int /// The maximum selected matters. ///
filter bool>.Func /// Filter for matters. ///
submitName string /// The submit button name. ///
return object>.Dictionary
        /// <summary>
        /// The index.
        /// </summary>
        /// <returns>
        /// The <see cref="ActionResult"/>.
        /// </returns>
        public ActionResult Index()
        {
            var matterIds = db.DnaSequence.Where(d => d.NotationId == Aliases.Notation.Nucleotide).Select(d => d.MatterId).ToArray();

            var viewDataHelper = new ViewDataHelper(db);
            var data = viewDataHelper.GetMattersData(1, int.MaxValue, m => matterIds.Contains(m.Id), "Transform");
            data.Add("nature", (byte)Nature.Genetic);
            ViewBag.data = JsonConvert.SerializeObject(data);
            return View();
        }
        /// <summary>
        /// The index.
        /// </summary>
        /// <returns>
        /// The <see cref="ActionResult"/>.
        /// </returns>
        public ActionResult Index()
        {
            var db = new LibiadaWebEntities();
            var genesSequenceIds = db.Subsequence.Select(s => s.SequenceId).Distinct();
            var matterIds = db.DnaSequence.Include(c => c.Matter).Where(c => !string.IsNullOrEmpty(c.RemoteId) &&
                                                          !genesSequenceIds.Contains(c.Id) &&
                                                          (c.Matter.SequenceType == SequenceType.CompleteGenome
                                                        || c.Matter.SequenceType == SequenceType.MitochondrionGenome
                                                        || c.Matter.SequenceType == SequenceType.Plasmid)).Select(c => c.MatterId).ToList();

            var viewDataHelper = new ViewDataHelper(db);
            var data = viewDataHelper.GetMattersData(1, 1, m => matterIds.Contains(m.Id), "Import");
            data.Add("nature", (byte)Nature.Genetic);
            ViewBag.data = JsonConvert.SerializeObject(data);
            return View();
        }