final fix

This commit is contained in:
devil_1nc 2023-04-21 01:24:38 +04:00
parent 4326593e9c
commit 37e3caa343
2 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,5 @@ namespace AbstractSoftwareInstallationContracts.BindingModels
public string PackageName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (ISoftwareModel, int)> PackageSoftware{get;set;} = new();
public object PackageSoftwares { get; set; }
}
}

View File

@ -189,6 +189,7 @@ namespace SoftwareInstallationView
Id = _id ?? 0,
PackageName = textBoxName.Text,
Price = Convert.ToDouble(textBoxPrice.Text),
PackageSoftware = _packageSoftwares
};
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);