Example #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);
        }
Example #2
0
 public IEnumerable <Set> GetAll()
 {
     return(_setRepository.GetAll());
 }