Example #1
0
        public async Task <ActionResult <IEnumerable <MakeDto> > > GetMakes()
        {
            var makes = await _repository.GetMakesAsync();

            return(Ok(_mapper.Map <IEnumerable <MakeDto> >(makes)));
        }
Example #2
0
        public async Task <IEnumerable <MakeResource> > GetMakes()
        {
            var makes = await repository.GetMakesAsync();

            return(mapper.Map <List <MakeResource> >(makes));
        }
Example #3
0
 public async Task <IPagedList <Make> > GetMakesAsync(IPagination pagination, ISort sort, IFilter filter)
 {
     return(await makeRepository.GetMakesAsync(pagination, sort, filter));
 }
Example #4
0
 // Gets all makes.
 // <returns>Makers.</returns>
 public async Task <IEnumerable <IVehicleMake> > GetMakesAsync()
 {
     return(await makeRepository.GetMakesAsync());
 }