Beispiel #1
0
        public List <GridResultDTO> GetAll()
        {
            var data      = _VendorRepository.GetAll();
            var VendorDTO = data.Select(x => new GridResultDTO
            {
                Id         = x.Id,
                VendorName = x.VendorName,
                Title      = x.Title,
                IsDeleted  = x.IsDeleted,
                Date       = x.Date,
                Tag        = _VendorRepository.GetAllTags(x.Id).Select(y => new TagDTO {
                    Name = y.Name
                }).ToList()
            }).ToList();

            return(VendorDTO);
        }