public bool PostApplied(AppliedDAO app) { AppliedServiceClient client = new AppliedServiceClient(); try { bool result = client.CreateApplied(app); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public AppliedDAO GetApplied(int id) { AppliedServiceClient client = new AppliedServiceClient(); try { AppliedDAO result = client.GetAppliedByID(id); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public IEnumerable<AppliedDAO> GetApplieds() { AppliedServiceClient client = new AppliedServiceClient(); try { IEnumerable<AppliedDAO> result = client.GetApplieds(); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public bool DeleteApplied(int id) { try { AppliedServiceClient client = new AppliedServiceClient(); if (client.DeleteApplied(id)) return true; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } return false; }