public ActionResult Edit(int id, Task task) { try { bool result; bool test; task.ClientIDSpecified = true; task.taskIDSpecified = true; ZzaService.ZzaService sv = new ZzaService.ZzaService(); sv.UpdateTaskInformation(task, out result, out test); return RedirectToAction("Index"); } catch (Exception) { return null; } }
public ActionResult Create(Task task) { try { bool result; bool test; task.ClientIDSpecified = true; task.ClientID = Convert.ToInt32(Session["clientid"]); task.taskIDSpecified = true; task.Status = "Queued"; ZzaService.ZzaService sv = new ZzaService.ZzaService(); sv.CreateTask(task, out result, out test); return RedirectToAction("Index"); } catch (Exception) { return null; } }
/// <remarks/> public void CreateTaskAsync(Task obj, object userState) { if ((this.CreateTaskOperationCompleted == null)) { this.CreateTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateTaskOperationCompleted); } this.InvokeAsync("CreateTask", new object[] { obj}, this.CreateTaskOperationCompleted, userState); }
/// <remarks/> public void CreateTaskAsync(Task obj) { this.CreateTaskAsync(obj, null); }
/// <remarks/> public void UpdateTaskInformationAsync(Task obj, object userState) { if ((this.UpdateTaskInformationOperationCompleted == null)) { this.UpdateTaskInformationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateTaskInformationOperationCompleted); } this.InvokeAsync("UpdateTaskInformation", new object[] { obj}, this.UpdateTaskInformationOperationCompleted, userState); }
/// <remarks/> public void UpdateTaskInformationAsync(Task obj) { this.UpdateTaskInformationAsync(obj, null); }