working #39
@@ -16,7 +16,6 @@ namespace BoredCareers.Controllers {
|
|||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public async Task<IActionResult> GetCompany(int CompanyID) {
|
public async Task<IActionResult> GetCompany(int CompanyID) {
|
||||||
if (isLoggedIn()) {
|
|
||||||
Company? company = await _databaseService.GetCompany(CompanyID);
|
Company? company = await _databaseService.GetCompany(CompanyID);
|
||||||
if (company != null) {
|
if (company != null) {
|
||||||
company.EmailToken = "";
|
company.EmailToken = "";
|
||||||
@@ -24,8 +23,6 @@ namespace BoredCareers.Controllers {
|
|||||||
}
|
}
|
||||||
return NotFound("Company doesn't exist");
|
return NotFound("Company doesn't exist");
|
||||||
}
|
}
|
||||||
return NotFound("Not logged in");
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IActionResult> SetCompany([FromBody] Company company) {
|
public async Task<IActionResult> SetCompany([FromBody] Company company) {
|
||||||
|
|||||||
Reference in New Issue
Block a user