Example #1
0
        public List <CharacterAffliction> GetCharacterStages(int characterID, int afflictionID)
        {
            var stages = CharacterAfflictions.Where(c => c.CharacterID == characterID).ToList();

            stages = stages.Where(c => c.AfflictionID == afflictionID).ToList();
            if (!stages.Any())
            {
                //stages = GetDefaultStages(afflictionID);
            }
            return(stages.OrderBy(s => s.Stage).ToList());
        }
Example #2
0
 public List <CharacterAffliction> GetDefaultStages(int afflictionID)
 {
     return(CharacterAfflictions.Where(c => c.AfflictionID == afflictionID).ToList());
 }
Example #3
0
 public CharacterAffliction GetCharacterStage(int characterAfflictionID)
 {
     return(CharacterAfflictions.Where(a => a.CharacterAfflictionID == characterAfflictionID).FirstOrDefault());
 }