PIbd-23 Prytkina A.V. LabWork03 Base #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LabWork03_Base"
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-23 Prytkina A.V. LabWork03 Baseto PIbd-23 Prytkina A.V. LabWork03 BaseЗачтено с понижением балла(ов)
@ -0,0 +82,4 @@
static OrderViewModel AccessJewelStorage(OrderViewModel model, JewelryStoreDatabase context)
{
if (model == null) return model;
string? jewelName = context.Jewels.FirstOrDefault(x => x.Id == model.JewelId)?.JewelName;
Cущности связаны, так что отдельный запрос для получения названия не требуется
Pull request closed