コード例 #1
0
        public async Task <IActionResult> Get(int pageIndex, int pageSize, int regionId = 0, string clue = "")
        {
            var result = await _hospitalService.FindHospitalByFilterAsync(pageIndex, pageSize, regionId, clue);

            if (result.Success)
            {
                return(Ok(result.Item));
            }
            else
            {
                return(BadRequest(result.Message));
            }
        }