Exemplo n.º 1
0
        public async Task <IActionResult> GetHouses()
        {
            return(await ProcessAsync(async() =>
            {
                var houses = await _houseService.GetHouses();

                return Ok(houses);
            }));
        }
Exemplo n.º 2
0
        public ActionResult <List <House> > GetAllHouses()
        {
            var houses = _houseService.GetHouses();

            return(Ok(houses));
        }
Exemplo n.º 3
0
        public async Task <List <HouseGeoViewModel> > GetHouses()
        {
            var houses = await _houseService.GetHouses();

            return(houses);
        }