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

            Offers = offers;

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

            return(Ok(offers));
        }