public string Addcandidates(string jobid, string candidateid)
        {
            string applicantid = "";

            Business.ApplicationService.AppServiceClient appclient  = new Business.ApplicationService.AppServiceClient();
            Business.ApplicationService.applicant[]      applicants = appclient.GetApplicants("", Session["companyid"].ToString(), "", candidateid, "master");
            foreach (Business.ApplicationService.applicant sinapplicant in applicants)
            {
                UI.Models.Applicantdetails singleapplicant = new Models.Applicantdetails();
                applicantid = appclient.AttachCandidate(Session["userid"].ToString(), Session["companyid"].ToString(), jobid, candidateid,
                                                        sinapplicant.contactid, sinapplicant.resumeid, sinapplicant.resumeurl, 0, sinapplicant.data);
            }
            return(applicantid);
        }
        public string Addcandidates(string jobid,string candidateid)
        {
            string applicantid="";
            Business.ApplicationService.AppServiceClient appclient = new Business.ApplicationService.AppServiceClient();
            Business.ApplicationService.applicant[] applicants = appclient.GetApplicants("", Session["companyid"].ToString(), "", candidateid, "master");
            foreach (Business.ApplicationService.applicant sinapplicant in applicants)
            {
                UI.Models.Applicantdetails singleapplicant = new Models.Applicantdetails();
                applicantid = appclient.AttachCandidate(Session["userid"].ToString(), Session["companyid"].ToString(), jobid, candidateid,
                         sinapplicant.contactid, sinapplicant.resumeid, sinapplicant.resumeurl, 0, sinapplicant.data);

            }
            return applicantid;
        }