// GET: Transport
        public IActionResult Index()
        {
            log.Info(nameof(Index));

            try
            {
                return(View(transportService.GetAll()));
            }
            catch (Exception e)
            {
                log.Error(e);

                return(BadRequest());
            }
        }
Example #2
0
        public async Task <IActionResult> GetAll()
        {
            var payment = await _transportService.GetAll();

            return(Ok(payment));
        }