예제 #1
0
        public List <BookModel> GetTestament(TestamentEnum testament)
        {
            string endString = $"{testament}||";

            return(this.bookModels
                   .Where(b => b.Key.EndsWith(endString))
                   .Select(s => s.Value)
                   .ToList());
        }
예제 #2
0
 private string BuildBookKey(int index, TestamentEnum testament)
 {
     return($"{index.ParseToString().PadLeft(2, '0')}{testament}||");
 }