public ActionResult jobseekerDashboard() { JobseekerDetailedModel data = new JobseekerDetailedModel(); int sess_id = Convert.ToInt32(Session["js_id"].ToString()); var temp = (from p in db.jobseeker_info where p.js_id == sess_id select p).FirstOrDefault(); data.contact = temp.contact; data.created_at = temp.created_at; data.current_address = temp.current_address; data.dateofbirth = temp.dateofbirth; data.education = db.jobseeker_education.Where(a => a.js_id == sess_id).ToList <jobseeker_education>(); data.dateofbirth = temp.dateofbirth; data.email = temp.email; data.email_verified = temp.email_verified; data.full_name = temp.full_name; data.gender = temp.gender; data.skills = temp.skills; data.updated_at = temp.updated_at; data.profile = temp.profile; data.created_at = temp.created_at; return(View(data)); }
public ActionResult jobseeker_profile(int id = 0) { jobseeker_info js = db.jobseeker_info.Find(id); if (js != null) { JobseekerDetailedModel a = new JobseekerDetailedModel(); a.contact = js.contact; a.created_at = js.created_at; a.current_address = js.current_address; a.dateofbirth = js.dateofbirth; a.education = db.jobseeker_education.Where(p => p.js_id == id).ToList(); a.email = js.email; a.full_name = js.full_name; a.gender = js.gender; a.js_id = js.js_id; a.profile = js.profile; a.skills = js.skills; a.updated_at = js.updated_at; a.facebook_id = js.facebook_id; a.experience = db.js_experience.Where(l => l.js_id == id).ToList(); return(View(a)); } else { return(Json("Restricted Access", JsonRequestBehavior.AllowGet)); } }