public IActionResult docs(int id) { EditDocsNomVM model = new EditDocsNomVM(); model.NominationId = id; model.Nomination = _db.Nomination.Where(a => a.NominationId == id).FirstOrDefault(); model.ApplicantId = _db.Nomination.Where(a => a.NominationId == id).FirstOrDefault().ApplicantId; model.Applicant = _db.Applicant.Where(a => a.ApplicantId == model.ApplicantId).FirstOrDefault(); return(View("docs", model)); }
public IActionResult docs(int id) { TempData["applicantId"] = HttpContext.GetLoggedUser().Id; EditDocsNomVM model = new EditDocsNomVM(); model.NominationId = id; model.Nomination = _db.Nomination.Where(a => a.NominationId == id).FirstOrDefault(); model.ApplicantId = _db.Nomination.Where(a => a.NominationId == id).FirstOrDefault().ApplicantId; model.Applicant = _db.Applicant.Where(a => a.ApplicantId == model.ApplicantId).FirstOrDefault(); return(View("docs", model)); }