public ActionResult Edit(int id, Schedule schedule)
        {
            try
            {
                bool result;
                bool test;
                ZzaService.ZzaService sv = new ZzaService.ZzaService();
                schedule.taskIDSpecified = true;
                schedule.sIDSpecified = true;
                schedule.sID = id;
                schedule.taskID =(int)Session["taskid"];
                schedule.endAtSpecified = true;
                schedule.startAtSpecified = true;
                schedule.intHoursSpecified = true;
                schedule.intMinSpecified = true;
                schedule.intSecSpecified = true;

                sv.UpdateScheduleInformation(schedule, out result, out test);

                return RedirectToAction("Index");
            }
            catch (Exception)
            {
                return null;
            }
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void UpdateScheduleInformationAsync(Schedule obj, object userState) {
     if ((this.UpdateScheduleInformationOperationCompleted == null)) {
         this.UpdateScheduleInformationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateScheduleInformationOperationCompleted);
     }
     this.InvokeAsync("UpdateScheduleInformation", new object[] {
                 obj}, this.UpdateScheduleInformationOperationCompleted, userState);
 }
Ejemplo n.º 3
0
 /// <remarks/>
 public void UpdateScheduleInformationAsync(Schedule obj) {
     this.UpdateScheduleInformationAsync(obj, null);
 }
Ejemplo n.º 4
0
 /// <remarks/>
 public void CreateScheduleAsync(Schedule obj, object userState) {
     if ((this.CreateScheduleOperationCompleted == null)) {
         this.CreateScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateScheduleOperationCompleted);
     }
     this.InvokeAsync("CreateSchedule", new object[] {
                 obj}, this.CreateScheduleOperationCompleted, userState);
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void CreateScheduleAsync(Schedule obj) {
     this.CreateScheduleAsync(obj, null);
 }