Beispiel #1
0
        public ActionResult New(TablaViewModel model)
        {
            WebService1SoapClient client = new WebService1SoapClient();

            var schedule = new Schedule();

            schedule.ID_Schedule = model.ID_Schedule;
            schedule.Day         = model.Day;
            schedule.State       = model.State;

            client.AddSchedule(model.Day, model.State);


            return(Redirect("~/Schedule/"));
        }