Пример #1
0
        public bool PostJobOpening(JobOpeningDAO jobOpening)
        {
            JobOpeningServiceClient client = new JobOpeningServiceClient();

            try
            {
                bool result = false;

                // are we editing or creating this item?
                if (jobOpening.JobOpeningID > 0)
                    result = client.UpdateJobOpening(jobOpening);
                else
                    result = client.CreateJobOpening(jobOpening);

                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }