public async Task <IEnumerable <TeaResource> > GetAllAsync() { var tea = await teaService.ListAsync(); var resource = mapper.Map <IEnumerable <Tea>, IEnumerable <TeaResource> >(tea); return(resource); }
public async Task <IEnumerable <UserResource> > GetAllAsync() { var users = await userService.ListAsync(); var resource = mapper.Map <IEnumerable <User>, IEnumerable <UserResource> >(users); return(resource); }
public async Task <IEnumerable <CoffeeResource> > GetAllAsync() { var coffee = await coffeeService.ListAsync(); var resource = mapper.Map <IEnumerable <Coffee>, IEnumerable <CoffeeResource> >(coffee); return(resource); }
public async Task <IEnumerable <ToppingResource> > GetAllAsync() { var topping = await toppingService.ListAsync(); var resource = mapper.Map <IEnumerable <Topping>, IEnumerable <ToppingResource> >(topping); return(resource); }
public async Task <IEnumerable <MilkResource> > GetAllAsync() { var milk = await milkService.ListAsync(); var resource = mapper.Map <IEnumerable <Milk>, IEnumerable <MilkResource> >(milk); return(resource); }