This commit is contained in:
Adam 2024-07-03 16:33:40 +02:00
parent 3c628d5871
commit d2cda83132
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,8 @@
if (e.IsNew) if (e.IsNew)
{ {
var newEmployee = (Company)e.EditModel; var newEmployee = (Company)e.EditModel;
newEmployee.Name = "John"; newEmployee.Name = "Add a company name";
newEmployee.OwnerId = SessionService.User!.UserId;
newEmployee.AffiliateId = Guid.NewGuid(); newEmployee.AffiliateId = Guid.NewGuid();
} }
} }

View File

@ -130,7 +130,7 @@
} }
else else
{ {
@if (hasProperty) @if (true || hasProperty)
{ {
<li class="nav-item"> <li class="nav-item">
<NavLink class="nav-link" href="user/admin"> <NavLink class="nav-link" href="user/admin">