Exemplo n.º 1
0
        public async Task <IActionResult> GetHospitalAssociatedUserAsync()
        {
            var response = await _hospitalService.GetHospitalAssocatedUserAsync();

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