|
|
@ -16,6 +16,7 @@ namespace StateJobsNYSubmit.Pages |
|
|
|
private PrivateData p = new PrivateData(); |
|
|
|
private PrivateData p = new PrivateData(); |
|
|
|
public UserData userData; |
|
|
|
public UserData userData; |
|
|
|
public string Posting_ID {get; set;} |
|
|
|
public string Posting_ID {get; set;} |
|
|
|
|
|
|
|
public Posting posting = null; |
|
|
|
public IndexModel(ILogger<IndexModel> logger) |
|
|
|
public IndexModel(ILogger<IndexModel> logger) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_logger = logger; |
|
|
|
_logger = logger; |
|
|
@ -48,7 +49,7 @@ namespace StateJobsNYSubmit.Pages |
|
|
|
string vacancyID = Request.Form["posting_id"]; |
|
|
|
string vacancyID = Request.Form["posting_id"]; |
|
|
|
if (vacancyID != null && !vacancyID.Trim().Equals("")) { |
|
|
|
if (vacancyID != null && !vacancyID.Trim().Equals("")) { |
|
|
|
Console.WriteLine($"Value of not null or empty vacancy ID: {vacancyID}"); |
|
|
|
Console.WriteLine($"Value of not null or empty vacancy ID: {vacancyID}"); |
|
|
|
Posting p = new Posting(vacancyID); |
|
|
|
posting = new Posting(vacancyID); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Console.WriteLine($"Unable to get Posting ID from form."); |
|
|
|
Console.WriteLine($"Unable to get Posting ID from form."); |
|
|
|
} |
|
|
|
} |
|
|
|