public async Task <ActionResult> ApplyAJob(string job) { Data.Job.JobAllData selectedJob = await Data.Job.GetJobDetail(job); ViewData["SelectedJob"] = selectedJob; List <Data.Job.Category> categoryList = await Data.Job.GetCategoryList(); ViewData["CategoryList"] = categoryList; // =========== Profile data ============= string userEmail = HttpContext.Session.GetString(System.SessionVariable.email); string uid = HttpContext.Session.GetString(System.SessionVariable.uid); Data.User.ProfileData profile = await Data.User.GetProfile(uid); ViewData["Profile"] = profile; Console.WriteLine(profile.eng_name); return(View("job_apply")); }
public async Task <ActionResult> Profile() { string uid = HttpContext.Session.GetString(System.SessionVariable.uid); Data.User.ProfileData profile = await Data.User.GetProfile(uid); ViewData["ProfielData"] = profile; Console.WriteLine(profile.eng_name); return(View()); }