Beispiel #1
0
        public async Task <GetAllSetView> GetAllSetsAsync()
        {
            var listEntity = await _setRepository.GetAll();

            var           model = _mapper.Map <List <GetAllSetViewItem> >(listEntity);
            GetAllSetView view  = new GetAllSetView(model);

            return(view);
        }
Beispiel #2
0
        public async Task <IActionResult> GetAll()
        {
            GetAllSetView view = await _service.GetAllSetsAsync();

            return(Ok(view));
        }