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

            return(Ok(toReturn));
        }
Example #2
0
 public IEnumerable <ValueItem> GetAll()
 {
     return(_valuesRepository.GetAll());
 }
Example #3
0
 public IEnumerable <ValueModel> Get()
 {
     return(_valueRepository.GetAll());
 }
Example #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));
        }
Example #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));
        }
Example #7
0
 public async Task <IEnumerable <Value> > GetValue()
 {
     return(await _valueRepository.GetAll());
 }
Example #8
0
 public ActionResult <IEnumerable <IValue> > Get()
 {
     return(Ok(_valueRepository.GetAll()));
 }
Example #9
0
        public IEnumerable <ValueDto> GetAll(PageOptions queryOptions, out int total)
        {
            var result = _valueRepository.GetAll <ValueDto>(queryOptions, out total);

            return(result);
        }