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