public bool PostUserProfileToApplicant(UserProfileToApplicantDAO usproToApplicant) { UserProfileToApplicantServiceClient client = new UserProfileToApplicantServiceClient(); try { bool result = client.CreateUserProfileToApplicant(usproToApplicant); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public UserProfileToApplicantDAO GetUserProfileToApplicant(int id) { UserProfileToApplicantServiceClient client = new UserProfileToApplicantServiceClient(); try { UserProfileToApplicantDAO result = client.GetUserProfileToApplicantByID(id); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public IEnumerable<UserProfileToApplicantDAO> GetUserProfileToApplicants() { UserProfileToApplicantServiceClient client = new UserProfileToApplicantServiceClient(); try { IEnumerable<UserProfileToApplicantDAO> result = client.GetUserProfileToApplicants(); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public bool DeleteUserProfileToApplicant(int id) { try { UserProfileToApplicantServiceClient client = new UserProfileToApplicantServiceClient(); if (client.DeleteUserProfileToApplicant(id)) return true; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } return false; }