Ejemplo n.º 1
0
        public SkillDto selectSkillById(SkillDto obj)
        {
            NewJobService.ServiceWCFClient svc = new NewJobService.ServiceWCFClient();

            try
            {
                return svc.selectSkillById(obj);
            }
            catch (Exception ex)
            {
                return null;
            }
        }
Ejemplo n.º 2
0
 public Boolean insertSkill(SkillDto obj)
 {
     using (NewJobService.ServiceWCFClient svc = new NewJobService.ServiceWCFClient())
     {
         try
         {
             return svc.insertSkill(obj);
         }
         catch (Exception ex)
         {
             return false;
         }
     }
 }
Ejemplo n.º 3
0
        public List<SkillDto> selectAllSkillJob()
        {
            NewJobService.ServiceWCFClient svc = new NewJobService.ServiceWCFClient();

            try
            {
                List<SkillDto> list = svc.selectAllSkill().ToList<SkillDto>();
                return list;
            }
            catch (Exception ex)
            {
                return null;
            }
        }
Ejemplo n.º 4
0
        public Boolean deleteSkill(SkillDto obj)
        {
            using (NewJobService.ServiceWCFClient svc = new NewJobService.ServiceWCFClient())
            {
                try
                {
                    SkillDto skill = svc.selectSkillById(obj);

                    if (skill != null)
                    {
                        return svc.deleteSkill(obj);
                    }
                    else
                    {
                        return false;
                    }
                }
                catch (Exception ex)
                {
                    return false;
                }
            }
        }