Exemplo n.º 1
0
        public Boolean deleteRecruitee(RecruiteeDto obj)
        {
            using (NewRecruiteeService.ServiceWCFClient svc = new NewRecruiteeService.ServiceWCFClient())
            {
                try
                {
                    RecruiteeDto rec = svc.selectRecruiteeById(obj);

                    if (rec != null)
                    {
                        return svc.deleteRecruitee(obj);
                    }
                    else
                    {
                        return false;
                    }
                }
                catch (Exception ex)
                {
                    return false;
                }
            }
        }
Exemplo n.º 2
0
        public RecruiteeDto selectRecruiteeById(RecruiteeDto obj)
        {
            NewRecruiteeService.ServiceWCFClient svc = new NewRecruiteeService.ServiceWCFClient();

            try
            {
                return svc.selectRecruiteeById(obj);
            }
            catch (Exception ex)
            {
                return null;
            }
        }