Esempio n. 1
0
        public async void OnPost()
        {
            HttpRequests req = new HttpRequests();

            for (int i = 0; i < 7; i++)
            {
                if (Time_Open[i].ToString() != "00:00:00" && Time_Close[i].ToString() != "00:00:00")
                {
                    object opti = new { Day = i, Open = Time_Open[i], Close = Time_Close[i] };
                    await req.CreateOpeningTime(opti, Convert.ToInt32(RouteData.Values["id"]), BaseController.GetToken());
                }
            }
        }