/// <summary>Snippet for UpdateApplication</summary>
 public void UpdateApplication()
 {
     // Snippet: UpdateApplication(Application, CallSettings)
     // Create client
     ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
     // Initialize request argument(s)
     Application application = new Application();
     // Make the request
     Application response = applicationServiceClient.UpdateApplication(application);
     // End snippet
 }
Exemplo n.º 2
0
 /// <summary>Snippet for UpdateApplication</summary>
 public void UpdateApplication_RequestObject()
 {
     // Snippet: UpdateApplication(UpdateApplicationRequest,CallSettings)
     // Create client
     ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
     // Initialize request argument(s)
     UpdateApplicationRequest request = new UpdateApplicationRequest
     {
         Application = new Application(),
     };
     // Make the request
     Application response = applicationServiceClient.UpdateApplication(request);
     // End snippet
 }
Exemplo n.º 3
0
        public bool PostApplication(ApplicationDAO app)
        {
            ApplicationServiceClient client = new ApplicationServiceClient();

            try
            {
                bool result = false;

                // are we editing or creating this item?
                if (app.ApplicationID > 0)
                    result = client.UpdateApplication(app);
                else
                    result = client.CreateApplication(app);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }