Pull SQL ID from SET
This commit is contained in:
1 parent
68686487c6
commit
2e4d1f358c
1 file changed
+1
-1
@@ -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