Agliullov D. A. Lab Work 5 Base #13

Closed
d.agliullov wants to merge 28 commits from Lab5_Base into Lab4_Base
3 changed files with 8 additions and 7 deletions
Showing only changes of commit a157403c04 - Show all commits

View File

@ -2,12 +2,6 @@
using ConfectioneryContracts.SearchModels;
using ConfectioneryContracts.StoragesContract;
using ConfectioneryContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace ConfectioneryListImplement
{

View File

@ -58,7 +58,6 @@ namespace ConfectioneryListImplement.Models
public OrderViewModel GetViewModel => new()
{
PastryId = PastryId,
ClientFIO = DataListSingleton.GetInstance().Clients.FirstOrDefault(x => x.Id == ClientId)?.ClientFIO ?? string.Empty,
ClientId = ClientId,
Count = Count,
Sum = Sum,

View File

@ -121,6 +121,14 @@ namespace ConfectioneryListImplement
break;
}
}
foreach (var client in _source.Clients)
{
if (client.Id == res.ClientId)
{
res.ClientFIO = client.ClientFIO;
break;
}
}
return res;
}
}