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

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