Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
            }
        }