Start work on job listings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user