예제 #1
0
        public IEnumerable<EmployerDAO> GetEmployers()
        {
            EmployerServiceClient client = new EmployerServiceClient();

            try
            {
                IEnumerable<EmployerDAO> result = client.GetEmployers();
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
예제 #2
0
        public bool PostEmployer(EmployerDAO emp)
        {
            EmployerServiceClient client = new EmployerServiceClient();

            try
            {
                bool result = client.CreateEmployer(emp);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
예제 #3
0
        public EmployerDAO GetEmployer(int id)
        {
            EmployerServiceClient client = new EmployerServiceClient();

            try
            {
                EmployerDAO result = client.GetEmployerByID(id);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
예제 #4
0
 public Default()
 {
     _host = new EmployerServiceClient();
 }
예제 #5
0
 public Default()
 {
     _host = new EmployerServiceClient();
 }