public IEnumerable<SkillDAO> GetSkills() { SkillServiceClient client = new SkillServiceClient(); try { IEnumerable<SkillDAO> result = client.GetSkills(); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public bool PostSkill(SkillDAO skill) { SkillServiceClient client = new SkillServiceClient(); try { bool result = client.CreateSkill(skill); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }
public SkillDAO GetSkill(int id) { SkillServiceClient client = new SkillServiceClient(); try { SkillDAO result = client.GetSkillByID(id); return result; } catch (FaultException<KaskServiceException> e) { throw new HttpException(e.Message); } }