Example #1
0
        public async Task <IActionResult> Index()
        {
            await _repository.Sync();

            var model = GetOrders();

            return(View(model));
        }
        public async Task <IEnumerable <OrderModel> > Get()
        {
            try
            {
                await _repository.Sync();

                return(GetOrders());
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
                throw;
            }
        }