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