public IEnumerable <IdText> GetLayer(int category)
        {
            List <IdText> result = new List <IdText>();
            List <DefectTypeLayerSeverity> relations = _defectService.GetAllRelations().Where(x => (int)x.Type == category).ToList();

            foreach (DefectTypeLayerSeverity defectTypeLayerSeverity in relations)
            {
                var layer = new IdText
                {
                    Id   = ((int)defectTypeLayerSeverity.Layer).ToString(),
                    Text = defectTypeLayerSeverity.Layer.GetDescription(),
                };
                result.Add(layer);
            }
            return(result);
        }