Esempio n. 1
0
        public async Task OnGetAsync()
        {
            var offers = await _offerService.GetAllAsync <Offer>();

            Offers = offers;

            System.Console.WriteLine();
        }
Esempio n. 2
0
        public async Task <IActionResult> GetAll()
        {
            var offers = await _service.GetAllAsync();

            return(Ok(offers));
        }