public async Task <TreatmentOutcome> GetTreatmentOutcomeForTypeAndSubType(
     TreatmentOutcomeType type,
     TreatmentOutcomeSubType?subType)
 {
     return(await _context.TreatmentOutcome.SingleOrDefaultAsync(t =>
                                                                 t.TreatmentOutcomeType == type &&
                                                                 t.TreatmentOutcomeSubType == subType));
 }
 public async Task <IList <TreatmentOutcome> > GetTreatmentOutcomesForType(TreatmentOutcomeType type)
 {
     return(await _context.TreatmentOutcome
            .Where(t => t.TreatmentOutcomeType == type)
            .ToListAsync());
 }