private PsychobioTestSummaryDescriptionEntity GetDescription(PsychoBioTestSummaryDescriptionType type, int value)
        {
            var anxiety = _descriptionRepository.GetDescription(type, value);

            if (anxiety == null)
            {
                throw new ArgumentException($"The {type} type '{value}' was not found in the database.");
            }

            return(anxiety);
        }
 public PsychobioTestSummaryDescriptionEntity GetDescription(PsychoBioTestSummaryDescriptionType type, int value)
 {
     return(Context
            .PsychoBioTestSummaryDescriptions
            .FirstOrDefault(item => item.Value == value && string.Equals(type.ToString(), item.Type)));
 }