Exemplo n.º 1
0
        public object PostAppointment(JObject jsonParam)
        {
            //schedual path & appointment
            var selectedPath = jsonParam.ToObject<Path>();
            var appointmentSchedualer = new AppointmentSchedualer();

            foreach (var appointment in selectedPath.Appointments)
            {
                appointmentSchedualer.SchedualAppointment(appointment);
            }

            var result = new { success= true };
            return Json(result);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            // test for finding free appointments
            var oo  = new AppointmentSchedualer().SchedualAppointment(new Appointment() {Company = new Company() {Type = CompanyType.PostOffice} });
            var pp = new FreeAppointmentFinder().FindFreeAppointmentByDay(DateTime.Now, CompanyType.Banks,CompanySubType.BankDiscount ,"ראשון לציון");
            //DistancesMatrixCreator.Run();
            //Dictionary<Tuple<string, string>, int> dictionary = DistancesMatrixReader.Read();

            /*WebApiHelper helper = new WebApiHelper("http://localhost:60799/");

            while(true)
                {
                helper.Post();
              //  var pp = helper.Get();
                Console.WriteLine("done");
            }

            */
        }