Example #1
0
        public async Task <IActionResult> GetGateways()
        {
            try
            {
                var gateways = await _context.GetGateways();

                return(Ok(gateways));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message, ex);
                return(StatusCode(500, "A problem happened while handling you request."));
            }
        }