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); } }
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); } }
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); } }
public Default() { _host = new EmployerServiceClient(); }