using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using backstage.Helpers;
using backstage.Models;

using System.Net.Http;

namespace backstage.Controllers
{
    #region ToBeExpiredViewBag Class
    public class ToBeExpiredViewBag
    {
        public string CustomerName { get; set; }
        public string ItemName { get; set; }
        public string CustomerPhone { get; set; }
        public string Name { get; set; }
        public string DueDate { get; set; }
    }
    #endregion

    [Authorize]
    public class HomeController : Controller
    {

        private readonly IConfiguration _config;
        private readonly ICallApi _callApi;
        /// <summary>
        /// 讀取組態用
        /// </summary>

        public HomeController(IConfiguration config, ICallApi callApi)
        {
            _config = config;
            _callApi = callApi;
        }





        public async Task<IActionResult> Index()
        {
            ResultModel result = new ResultModel();
 

           

            return View();
        }

     
        public IActionResult Error()
        {
            return View();
        }


       
    
        


    }
}