In the results Im getting null value, getting NullReferenceException when the return is happening. I have used nullcheck yet I'm getting the error
results = //Here one get call is happening and the value is null
return Json(new
{
HasPermission = hasPermission,
EmployeeCount = results == null? 0 : results.Count,
});

