コード例 #1
0
        public async Task <ListResultDto <GetAuthorOutput> > ListAll()
        {
            var test1 = L("TenantName_Regex_Description");

            Logger.Info("Test logger.Info");
            var authors = _authorManager.GetAllList();
            var result  = await authors.ToListAsync();

            return(new ListResultDto <GetAuthorOutput>(ObjectMapper.Map <List <GetAuthorOutput> >(result)));
        }
コード例 #2
0
        public IEnumerable <GetAuthorOutput> ListAll()
        {
            var getAll = _authorManager.GetAllList();
            var output = ObjectMapper.Map <List <GetAuthorOutput> >(getAll);

            return(output);
        }
コード例 #3
0
        public IEnumerable <GetAuthorOutput> ListAll()
        {
            var authors = _authorManager.GetAllList();
            var output  = _objectMapper.Map <IEnumerable <GetAuthorOutput> >(authors);

            return(output);
        }