Fetch points if already given

This commit is contained in:
Benjamin
2025-01-11 09:40:25 +01:00
parent 645d9f08f5
commit 94cb901f36

View File

@@ -117,6 +117,12 @@ namespace pointMaster.Controllers
return NotFound(); return NotFound();
} }
var point = context.Points.FirstOrDefault(x => x.Poster.Id == postIntId && x.Patrulje.Id == id);
if (point != null)
{
vm.points = point;
}
return View(vm); return View(vm);
} }