Start work on job listings

This commit is contained in:
2025-07-17 21:41:18 -07:00
parent 485ad1b3de
commit 30cfe67a7b
10 changed files with 271 additions and 0 deletions
@@ -30,6 +30,7 @@ namespace BoredCareers.Controllers {
if (isLoggedIn()) {
if (await isLoggedInUserEmployeeOf(JobListing.CompanyID)) {
await _databaseService.SetJobListing(JobListing);
return Ok();
}
}
return NotFound();
@@ -42,6 +43,7 @@ namespace BoredCareers.Controllers {
if (jobListing != null) {
if (await isLoggedInUserEmployeeOf(JobListingID)) {
await _databaseService.DeleteJobListing(JobListingID);
return Ok();
}
}
}