Esempio n. 1
0
        public bool PostEmployment(EmploymentDAO emp)
        {
            EmploymentServiceClient client = new EmploymentServiceClient();

            try
            {
                bool result = client.CreateEmployment(emp);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
Esempio n. 2
0
        public IEnumerable<EmploymentDAO> GetEmployments()
        {
            EmploymentServiceClient client = new EmploymentServiceClient();

            try
            {
                IEnumerable<EmploymentDAO> result = client.GetEmployments();
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
Esempio n. 3
0
        public IEnumerable<EmploymentDAO> GetItemsForApplicant(string first, string last, string ssn)
        {
            EmploymentServiceClient client = new EmploymentServiceClient();

            try
            {
                IEnumerable<EmploymentDAO> result = client.GetEmploymentsByName(first, last, ssn);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
Esempio n. 4
0
        public EmploymentDAO GetEmployment(int id)
        {
            EmploymentServiceClient client = new EmploymentServiceClient();

            try
            {
                EmploymentDAO result = client.GetEmploymentByID(id);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }