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; } }
/// <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); }
/// <remarks/> public void UpdateScheduleInformationAsync(Schedule obj) { this.UpdateScheduleInformationAsync(obj, null); }
/// <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); }
/// <remarks/> public void CreateScheduleAsync(Schedule obj) { this.CreateScheduleAsync(obj, null); }