This commit is contained in:
devil_1nc 2023-05-22 20:33:16 +04:00
parent a708257511
commit 908e02b8da
4 changed files with 7 additions and 7 deletions

View File

@ -65,7 +65,7 @@ namespace AbstractSoftwareInstallationBusinessLogic.BusinessLogic
}
model.Status = OrderStatus.Принят;
model.DateCreate = DateTime.Now;
if (_orderStorage.Insert(model) == null)
if (_orderStorage.Insert(model) == null)
{
model.Status = OrderStatus.Неизвестен;
_logger.LogWarning("Failed to insert order into a storage");
@ -115,4 +115,4 @@ namespace AbstractSoftwareInstallationBusinessLogic.BusinessLogic
return StatusUpdate(model, OrderStatus.Готов);
}
}
}
}

View File

@ -12,7 +12,7 @@ namespace AbstractSoftwareInstallationContracts.BindingModels
public int Id { get; set; }
public string PackageName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (ISoftwareModel, int)> PackageSoftware{get;set;} = new();
public Dictionary<int, (ISoftwareModel, int)> PackageSoftware { get; set; } = new();
}
}
}

View File

@ -22,4 +22,4 @@ namespace AbstractSoftwareInstallationContracts.ViewModels
} = new();
}
}
}

View File

@ -45,7 +45,7 @@ namespace AbstractSoftwareInstallationListImplement.Implements
{
return null;
}
foreach (var software in _source.Softwares)
foreach (var software in _source.Softwares)
{
if ((!string.IsNullOrEmpty(model.SoftwareName) &&
software.SoftwareName == model.SoftwareName) ||
@ -102,4 +102,4 @@ namespace AbstractSoftwareInstallationListImplement.Implements
}
}
}
}