i can refactor the question as the likedid is zero the claims principal return nothing
CS8604 Possible null reference argument for parameter 's' in 'int int.Parse(string s)'.
Asjad Butt
71
Reputation points
Hi the base is not explain able but im using name identifier of claims principal to get user id so i convert it to int user parse operation now its giving a null reference warning as follows: Possible null reference argument for parameter 's' in 'int int.Parse(string s)'.
now when i call this method in post postman i get an Input string was not in a correct format. error.
ill provide the controller with and the repositories the have the methods
Developer technologies ASP.NET ASP.NET Core
4,815 questions