Example #1
0
        public async Task <GatewayResponse> Details(int id)
        {
            var gateway = await _gatewayRepository.FindByIdAsync(id);

            if (gateway == null)
            {
                return(new GatewayResponse("Gateway not found"));
            }

            return(new GatewayResponse(gateway));
        }