Пример #1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var result = await _doctorService.GetAllDoctorsAsync();

                return(Ok(result));
            }
            catch (Exception e)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, $"Database Failure: {e}"));
            }
        }