Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }