удалил закоментированный код
This commit is contained in:
parent
227f8c1d23
commit
bcda89c22e
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user