Пример #1
0
        public ActionResult Get()
        {
            // Get data
            IQueryable <Author> authors = dbContext.Set <Author>().Include(a => a.Books);

            // Convert to DTO
            IQueryable <AuthorDTO> result = CustomMapper.ProjectTo(authors, 2);

            return(Ok(result.DecompileAsync()));
        }