Pull SQL ID from SET
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BoredCareers.Controllers {
|
||||
if (newCompany) {
|
||||
Company? test = await _databaseService.GetCompany(company.ID);
|
||||
if (test == null) {
|
||||
await _databaseService.SetCompany(company);
|
||||
company.ID = await _databaseService.SetCompany(company);
|
||||
await _databaseService.SetEmployee(new Employee() {
|
||||
AccountID = getLoggedInUserID(),
|
||||
Company = company
|
||||
|
||||
Reference in New Issue
Block a user