Agliullov D. A. Lab Work 5 Base #13

Closed
d.agliullov wants to merge 28 commits from Lab5_Base into Lab4_Base
Showing only changes of commit f806775b7b - Show all commits

View File

@ -67,11 +67,11 @@ namespace ConfectioneryListImplement
public ClientViewModel? Insert(ClientBindingModel model)
{
model.Id = 1;
foreach (var component in _source.Components)
foreach (var client in _source.Components)
{
if (model.Id <= component.Id)
if (model.Id <= client.Id)
{
model.Id = component.Id + 1;
model.Id = client.Id + 1;
}
}
var res = Client.Create(model);