how to get count of group of records in json with the help of linq query. i have writtern sql query its giving correct n=but in linq its giving incorrect.
sql