public IEnumerable <LabelDTO> GetLabelsByCardId(string cardId) { var result = db_.GetLabelsByCardId(cardId) .Select(l => new LabelDTO(l.Id.ToString(), l.Title, l.Color)); return(result); }