Click here to Skip to main content
15,895,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
var result = TblSMSEvent.Where(e=>e.Company_id =51)
           .GroupBy(e=>e.Branch_id)
           .Select(g=>new{ Branch_id=g.Key, Number_sms =g.Count()).ToList();



here I want to add branch_name so that the branch name should be taken from table tbl_branch depend on this branch_id.. help me
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900