public IActionResult GetAll() { List <Value> items = _valueRepository.GetAll().ToList(); IEnumerable <ValueDto> toReturn = items.Select(x => Mapper.Map <ValueDto>(x)); return(Ok(toReturn)); }
public IEnumerable <ValueItem> GetAll() { return(_valuesRepository.GetAll()); }
public IEnumerable <ValueModel> Get() { return(_valueRepository.GetAll()); }
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)); }
public IEnumerable <ValueDto> GetAll(PageOptions queryOptions, out int total) { var result = _valueRepository.GetAll(queryOptions, out total); return(_mapper.Map <IEnumerable <Value>, IEnumerable <ValueDto> >(result)); }
public async Task <IEnumerable <Value> > GetValue() { return(await _valueRepository.GetAll()); }
public ActionResult <IEnumerable <IValue> > Get() { return(Ok(_valueRepository.GetAll())); }
public IEnumerable <ValueDto> GetAll(PageOptions queryOptions, out int total) { var result = _valueRepository.GetAll <ValueDto>(queryOptions, out total); return(result); }