// GET: Transport public IActionResult Index() { log.Info(nameof(Index)); try { return(View(transportService.GetAll())); } catch (Exception e) { log.Error(e); return(BadRequest()); } }
public async Task <IActionResult> GetAll() { var payment = await _transportService.GetAll(); return(Ok(payment)); }