удалил закоментированный код

This commit is contained in:
dyakonovr 2024-05-02 23:19:47 +04:00
parent 227f8c1d23
commit bcda89c22e
2 changed files with 6 additions and 29 deletions

View File

@ -30,29 +30,6 @@ namespace SoftwareInstallationBusinessLogic.BusinessLogics
}
public List<ReportPackageComponentViewModel> GetPackageComponent()
{
/*var components = _componentStorage.GetFullList();
var packages = _packageStorage.GetFullList();
var list = new List<ReportPackageComponentViewModel>();
foreach (var package in packages)
{
var record = new ReportPackageComponentViewModel
{
PackageName = package.PackageName,
Components = new List<Tuple<string, int>>(),
TotalCount = 0
};
foreach (var package in packages)
{
if (package.PackageComponents.ContainsKey(component.Id))
{
record.Packages.Add(new Tuple<string, int>(package.PackageName, package.PackageComponents[component.Id].Item2));
record.TotalCount += package.PackageComponents[component.Id].Item2;
}
}
list.Add(record);
}
return list;*/
return _packageStorage.GetFullList().Select(x => new ReportPackageComponentViewModel
{
PackageName = x.PackageName,

View File

@ -104,14 +104,14 @@ namespace SoftwareInstallationListImplement.Implements
}
}
return null;
/*var res = Implementer.Create(model);*/
/*if (res != null)
var newImplementer = Implementer.Create(model);
if (newImplementer == null)
{
_source.Implementers.Add(res);
return null;
}
return res?.GetViewModel;*/
_source.Implementers.Add(newImplementer);
return newImplementer.GetViewModel;
}
public ImplementerViewModel? Update(ImplementerBindingModel model)