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;
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void CreateClientAsync(Client obj) {
     this.CreateClientAsync(obj, null);
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 /// <remarks/>
 public void UpdateClientInformationAsync(Client obj) {
     this.UpdateClientInformationAsync(obj, null);
 }