示例#1
0
        public async Task <IEnumerable <ModeResource> > GetAllAsync()
        {
            var modes = await modeService.GetAllAsync();

            var resource = mapper.Map <IEnumerable <Mode>, IEnumerable <ModeResource> >(modes);

            return(resource);
        }