PIbd-22 Chubykina P.P. LabWork_02 #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LabWork_02.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: PIbd-22 Chubykina P.P. LabWork_02to PIbd-22 Chubykina P.P. LabWork_02Проверено
@ -0,0 +93,4 @@
private OrderViewModel AddPastryName(OrderViewModel model)
{
var selectedPastry = source.Pastries.FirstOrDefault(x => x.Id == model.PastryId);
if (selectedPastry != null)
Можно без if: viewModel.<Название продукта> = <элемент>?.<Название продукта>;
Pull request closed