public async Task <bool> EditSchedule(ScheduleDto s)
        {
            ScheduleRequest <bool> request = new ScheduleRequest <bool>();

            request.Url = baseUrl + "/Schedule";
            //bool result = await request.SubmitDataJson(Method.PUT, JsonConvert.SerializeObject(s));
            bool result = await request.SubmitData(Method.PUT, ScheduleDtoSerialization.Serialize(s));

            return(result);
        }
        public async Task <List <int> > ImportCsv(List <ScheduleDto> _scheduleDtos)
        {
            ScheduleRequest <List <int> > request = new ScheduleRequest <List <int> >();
            List <object> list = new List <object>();

            request.Url = baseUrl + "/Schedule/Import";
            foreach (ScheduleDto sdto in _scheduleDtos)
            {
                list.Add(ScheduleDtoSerialization.Serialize(sdto));
            }
            //List<int> re = await request.SubmitDataJson(Method.POST, JsonConvert.SerializeObject(_scheduleDtos));
            List <int> re = await request.SubmitData(Method.POST, list);

            return(re);
        }