public IActionResult GetAll()
        {
            List <Value>           items    = _valueRepository.GetAll().ToList();
            IEnumerable <ValueDto> toReturn = items.Select(x => Mapper.Map <ValueDto>(x));

            return(Ok(toReturn));
        }
Beispiel #2
0
 public IEnumerable <ValueItem> GetAll()
 {
     return(_valuesRepository.GetAll());
 }
Beispiel #3
0
 public IEnumerable <ValueModel> Get()
 {
     return(_valueRepository.GetAll());
 }
Beispiel #4
0
        public async Task <ActionResult <IEnumerable <Value> > > GetAll()
        {
            var values = await _valueRepository.GetAll();

            return(Ok(values));
        }
        public async Task <List <ValueDto> > GetAll()
        {
            var values = await _valueRepository.GetAll();

            return(_mapper.Map <List <ValueDto> >(values));
        }
Beispiel #6
0
        public IEnumerable <ValueDto> GetAll(PageOptions queryOptions, out int total)
        {
            var result = _valueRepository.GetAll(queryOptions, out total);

            return(_mapper.Map <IEnumerable <Value>, IEnumerable <ValueDto> >(result));
        }
Beispiel #7
0
 public async Task <IEnumerable <Value> > GetValue()
 {
     return(await _valueRepository.GetAll());
 }
Beispiel #8
0
 public ActionResult <IEnumerable <IValue> > Get()
 {
     return(Ok(_valueRepository.GetAll()));
 }
Beispiel #9
0
        public IEnumerable <ValueDto> GetAll(PageOptions queryOptions, out int total)
        {
            var result = _valueRepository.GetAll <ValueDto>(queryOptions, out total);

            return(result);
        }