Example #1
0
        /// <summary>
        /// Get all defects
        /// </summary>
        /// <returns>return list with defects mapped to DefectDto </returns>
        public async Task <IEnumerable <DefectDto> > GetAllDefectsAsync()
        {
            var defects = await defectRepository.FindAllDefectsAsync();

            return(mapper.Map <IEnumerable <DefectDto> >(defects));
        }