You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: C#/Answers/a009.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ public class BrokenController : Controller
6
6
[HttpGet]
7
7
publicIHttpActionResultGetBrokenRecord(intid)
8
8
{
9
-
varrecord=records.FirstOrDefault((p)=>p.Id==id&&p.OwnerId==User.Id);// Here we add a condition so that the authorized user only gets to see its owned records.
9
+
varrecord=records.FirstOrDefault((p)=>p.Id==id&&p.OwnerId==User.Id);// Here we add a condition so that the authorized user only gets to see its own records.
0 commit comments