This commit is contained in:
Adam 2024-06-25 18:49:30 +02:00
parent 4900dfb2c4
commit 354a22d31d
1 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,7 @@
{
_companyToSetOwner.OwnerId = userModelDto.Id;
var result = await serviceProviderDataService.UpdateServiceProviderAsync(_companyToSetOwner);
_setOwnerPopupVisible = false;
_companyToSetOwner = null;
return result;
}
@ -318,8 +319,9 @@
_logger.Detail($"OnProductGridItemSaving");
var company = _productDetailGridComponent!.ParentData as Company;
if (company == null || company.OwnerId.IsNullOrEmpty())
if (company == null || company.OwnerId.IsNullOrEmpty())
{
e.Cancel = true;
_logger.Error($"OnProductGridItemSaving; company == null || company.OwnerId.IsNullOrEmpty(); company.OwnerId: {company?.OwnerId}");
return;
}