public FindingsTableDto <FindingsTableRowDto> GetDefects(FindingsDataTableFilterModelDto findingsDataTableFilter)
        {
            FindingsQuery findingsQuery = _mapper.Map <FindingsQuery>(findingsDataTableFilter);

            if (findingsDataTableFilter.CustomFilterId != Guid.Empty)
            {
                findingsQuery.CustomFilterValues =
                    _customFilterService.GetById(findingsDataTableFilter.CustomFilterId).Values;
            }
            IPagedList <DefectRowDto>  findings             = _defectService.GetDefectsForNodePaged(findingsQuery.Type, findingsQuery.Id, findingsQuery);
            List <FindingsTableRowDto> findingsTableRowDtos = _mapper.Map <IEnumerable <DefectRowDto>, IEnumerable <FindingsTableRowDto> >(findings).ToList();

            return(new FindingsTableDto <FindingsTableRowDto>
            {
                FindingsTableRows = findingsTableRowDtos,
                TotalRecords = findings.TotalCount
            });
        }
        public CustomFilterDto GetById(string id)
        {
            CustomFilter customFilter = _customFilterService.GetById(new Guid(id));

            return(_mapper.Map <CustomFilterDto>(customFilter));
        }