// GET: Applications/Create
 //Gets the create application form.
 public IActionResult Create()
 {
     ViewData["AdvertisementId"] = new SelectList(_context.Advertisement.Include(a => a.Employer), "Id", "AdvertisementDisplayId");
     ViewData["CandidateId"]     = new SelectList(_context.Set <Candidate>(), "Id", "RegsitrationNumber");
     return(View());
 }
Example #2
0
 // GET: Advertisements/Create
 //Returns the create form.
 public IActionResult Create()
 {
     ViewData["EmployerId"] = new SelectList(_context.Set <Employer>(), "Id", "Name");
     ViewData["JobType"]    = new SelectList(Enum.GetValues(typeof(JobType)));
     return(View());
 }