I am new to linq query in Asp .Net. I want total salary for department wise using group by concept. I want result using linq query so please help me friends. I have taken one table see below. Can you please give a solution for my query? I had tried but I didn't find out the solution.
My data table is:
    id   name     dept   sal
     1   ABC      it    10000
     2   BBC      it    20000
     3   CCA      hr    30000
     4   DDA      hr    40000
     5   MMN      admin 50000
Result like:
       dept   sal  
      ----------------- 
       It    30000
       Hr    70000
       Admin 50000   
 
     
     
     
     
     
    