public ActionResult Create(Client client)
 {
     try
     {
         bool result;
         bool test;
         client.IDSpecified = true;
         ZzaService.ZzaService sv = new ZzaService.ZzaService();
         sv.CreateClient(client, out result, out test);
         return RedirectToAction("Index");
     }
     catch (Exception)
     {
         return null;
     }
 }
        public ActionResult Edit(int id, Client client)
        {
            try
            {
                bool result;
                bool test;
                ZzaService.ZzaService sv = new ZzaService.ZzaService();
                client.IDSpecified = true;

                sv.UpdateClientInformation(client, out result, out test);

                return RedirectToAction("Index");
            }
            catch (Exception)
            {
                return null;
            }
        }
Example #3
0
 /// <remarks/>
 public void CreateClientAsync(Client obj, object userState) {
     if ((this.CreateClientOperationCompleted == null)) {
         this.CreateClientOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateClientOperationCompleted);
     }
     this.InvokeAsync("CreateClient", new object[] {
                 obj}, this.CreateClientOperationCompleted, userState);
 }
Example #4
0
 /// <remarks/>
 public void CreateClientAsync(Client obj) {
     this.CreateClientAsync(obj, null);
 }
Example #5
0
 /// <remarks/>
 public void UpdateClientInformationAsync(Client obj, object userState) {
     if ((this.UpdateClientInformationOperationCompleted == null)) {
         this.UpdateClientInformationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateClientInformationOperationCompleted);
     }
     this.InvokeAsync("UpdateClientInformation", new object[] {
                 obj}, this.UpdateClientInformationOperationCompleted, userState);
 }
Example #6
0
 /// <remarks/>
 public void UpdateClientInformationAsync(Client obj) {
     this.UpdateClientInformationAsync(obj, null);
 }