public async Task <GetAllSetView> GetAllSetsAsync() { var listEntity = await _setRepository.GetAll(); var model = _mapper.Map <List <GetAllSetViewItem> >(listEntity); GetAllSetView view = new GetAllSetView(model); return(view); }
public IEnumerable <Set> GetAll() { return(_setRepository.GetAll()); }