public ActionResult ApplicantDetail(string applicantid, string mrfid)
        {
            ViewBag.ApplicantsActive = "active";
            ApplicantDetailViewModel i = new ApplicantDetailViewModel();

            i.ApplicantID = applicantid;
            return(View(i));
        }
        public ActionResult UpdateDetail(string applicantid, string mrfid)
        {
            ViewBag.applicantid = applicantid;
            ViewBag.mrfid       = mrfid;
            var i      = db.sp_applicant_detail(applicantid).FirstOrDefault();
            var detail = new ApplicantDetailViewModel()
            {
                ApplicantID       = i.applicant_id,
                Fname             = i.firstname,
                Mname             = i.middleinitial,
                Lname             = i.surname,
                ApplicantFullname = i.applicant_fullname,
                address           = i.address,
                position          = i.requiredposition,
                location          = i.location,
                birthday          = (DateTime)i.birthday,
                religion          = i.religion,
                age                        = (int)i.age,
                gender                     = i.gender,
                contactnumber              = i.contactnumber,
                emailaddress               = i.emailaddress,
                EducationAttainment        = i.educationattainment,
                resume                     = Tools.ToBoolean(i.resume),
                sss                        = i.sss,
                nbi                        = Tools.ToBoolean(i.nbi),
                philhealth                 = i.philhealth,
                birthcertificate           = Tools.ToBoolean(i.birthcertificate),
                pagibig                    = i.pagibig,
                tin                        = i.tin,
                diploma                    = Tools.ToBoolean(i.diploma),
                marriage                   = Tools.ToBoolean(i.marriage),
                dependantsbirthcertificate = Tools.ToBoolean(i.dependents_birth_certificate),
                certificateofemployment    = Tools.ToBoolean(i.certifcateofemployment),
                drugtest                   = Tools.ToBoolean(i.drugtest),
                basic3                     = Tools.ToBoolean(i.basic3),
                basic5                     = Tools.ToBoolean(i.basic5),
                basic7                     = Tools.ToBoolean(i.basic7),
                referredby                 = i.referrals,
                HowDidYouKnowTopserve      = i.howdidyouknowtopserve,
                JobFair                    = i.jobfair
            };

            return(View(detail));
        }
 public ActionResult UpdateApplicantInformation(ApplicantDetailViewModel i, string applicantid, string mrfid)
 {
     db.sp_update_applicant_detail(applicantid, i.Fname, i.Mname, i.Lname, i.address, i.position, i.birthday, i.religion, i.gender, i.contactnumber, i.emailaddress, i.EducationAttainment, i.Certification, i.Skill, i.HowDidYouKnowTopserve, i.referredby);
     db.sp_applicant_requirement(applicantid, i.nbi, i.birthcertificate, i.diploma, i.marriage, i.certificateofemployment, false, i.basic5, i.basic7, i.basic3, i.drugtest, i.dependantsbirthcertificate, i.resume, i.sss, i.philhealth, i.pagibig, i.tin);
     return(RedirectToAction("ApplicantDetail", "Applicant", new { mrfid = mrfid, applicantid = applicantid }));
 }
        public ActionResult UpdateDetail(ApplicantDetailViewModel i, string applicantid, string mrfid)
        {
            db.sp_applicant_requirement(applicantid, i.nbi, i.birthcertificate, i.diploma, i.marriage, i.certificateofemployment, false, i.basic5, i.basic7, i.basic3, i.drugtest, i.dependantsbirthcertificate, i.resume, i.sss, i.philhealth, i.pagibig, i.tin);

            return(RedirectToAction("ApplicantDetail", "Applicant", new { mrfid = mrfid, applicantid = applicantid }));
        }