NullPointException in the Update/Post method, but not in the Get Method
I started feeling puzzled at this NullPointException in this code
`
In the Get method it grabs the id but the following Post method it does not and crashes into NullPointException. Seems to me like the GET method was able to refer to the row existing in my DB. However that does not seem to be the case for the Post method.
Could anyone help me understand why?
My code: https://pastebin.com/pXHYHfKM
Pastebin
using System.Diagnostics;using System.Security.Claims;using Microso...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies