public IActionResult CreateInterviewer() { Models.InterviewerVM vm = new Models.InterviewerVM(); string[] split = User.FindFirst("name").Value.Split(' ', 2); vm.Firstname = split[0]; vm.Lastname = split[1]; vm.Id = User.FindFirst("oid").Value; _interviewer.CreateInterviewer(vm); return(View("Index")); }
public IActionResult GetApplicants() { Models.InterviewerVM vm = new Models.InterviewerVM(); vm.Id = User.FindFirst("oid").Value; Applicant appl = new Applicant(); List <Applicant> temp = appl.GetAllApplicantsForInterviewer(vm.Id); List <Models.ApplicantVM> applicants = new List <Models.ApplicantVM>(); foreach (Models.ApplicantVM item in temp) { applicants.Add(item); } return(View("Index", applicants)); }