Ejemplo n.º 1
0
        public ActionResult Basicinfo()
        {
            string fname = Request["fname"];
            string mname = Request["mname"];
            string lname = Request["lname"];

            string   image  = Request["image"];
            string   date   = Request["dob"];
            DateTime dob    = Convert.ToDateTime(date);
            string   gender = Request["gender"];

            string email = Request["email"];
            string ph1   = Request["ph1"];
            string ph2   = Request["ph2"];

            string address = Request["address"];
            string city    = Request["city"];
            string country = Request["country"];

            string objective = Request["objective"];

            string depofint = Request["depoi"];
            string desofint = Request["desoi"];

            date = Request["joiningdate"];
            DateTime joiningdate = Convert.ToDateTime(date);

            string lastdegree    = Request["lastdegree"];
            string lastinstitute = Request["lastinstitute"];
            string lastperform   = Request["lastperform"];

            string scndlastdegree    = Request["scndlastdegree"];
            string scndlastinstitute = Request["scndlastinstitute"];
            string scndlastperform   = Request["scndlastperform"];

            string addqualification = Request["addqualification"];

            BasicInfo obj = new BasicInfo();

            obj.addBasicInfo(fname, lname, mname, image, dob, gender, email, ph1, ph2, address, city, country, objective, depofint, desofint, joiningdate, lastdegree, lastinstitute, lastperform, scndlastdegree, scndlastinstitute, scndlastperform, addqualification, 1);
            getAllLists obj1 = new getAllLists();

            ViewBag.Cities     = obj1.getCities();
            ViewBag.Countaries = obj1.getCountaries();
            ViewBag.Degrees    = obj1.getDegrees();
            ViewBag.Institutes = obj1.getInstitutes();
            return(View("Create"));
        }
Ejemplo n.º 2
0
        public ActionResult CreateBasicinfo()
        {
            JobResumeBasic br  = new JobResumeBasic();
            BasicInfo      obj = new BasicInfo();

            string fname = Request["fname"];
            string lname = Request["lname"];
            string email = Request["email"];

            br.mname = Request["mname"];
            br.image = Request["image"];
            string date = Request["dob"];

            br.dob     = Convert.ToDateTime(date);
            br.gender  = Request["gender"];
            br.ph1     = Request["ph1"];
            br.ph2     = Request["ph2"];
            br.address = Request["address"];
            string city = Request["city"];

            br.city = obj.getCityId(city);
            string country = Request["country"];

            br.country     = obj.getCountryId(country);
            br.objective   = Request["objective"];
            br.depofint    = Request["depoi"];
            br.desofint    = Request["desoi"];
            date           = Request["joiningdate"];
            br.joiningdate = Convert.ToDateTime(date);
            string lastdegree = Request["lastdegree"];

            br.lastdegree = obj.getDegreeId(lastdegree);
            string lastinstitute = Request["lastinstitute"];

            br.lastinstitute  = obj.getInstituteId(lastinstitute);
            br.perflastdegree = Request["lastperform"];
            string scndlastdegree = Request["scndlastdegree"];

            br.scndlastdegree = obj.getDegreeId(scndlastdegree);
            string scndlastinstitute = Request["scndlastinstitute"];

            br.scndlastinstitute  = obj.getInstituteId(scndlastinstitute);
            br.perfscndlastdegree = Request["scndlastperform"];

            br.addqualification = Request["addqualification"];
            br.userId           = uid;
            obj.addBasicInfo(br);
            getAllLists obj1 = new getAllLists();

            ViewBag.Cities     = obj1.getCities();
            ViewBag.Countaries = obj1.getCountaries();
            ViewBag.Degrees    = obj1.getDegrees();
            ViewBag.Institutes = obj1.getInstitutes();
            BasicInfo b  = new BasicInfo();
            ExpInfo   e1 = new ExpInfo();
            ExtraInfo e2 = new ExtraInfo();

            ViewBag.isBasicInfoExist = b.isBasicInfoFound(uid);
            ViewBag.isExpInfoExist   = e1.isExpInfoFound(uid);
            ViewBag.isExtraInfoExist = e2.isExtraInfoFound(uid);

            UserInfo u = new UserInfo();

            ViewBag.UserInfo = u.getUserInfo(uid);
            return(View("Create"));
        }