title: arithmetic operators in linq
body: <p>do arithmetic operators not allowed in Linq. it giving error + can not applied to lambda expression. CostperResponse.Cost is of datatype decimal</p>
  
  <pre><code>        var costperrespone= from v in lstSale
                                   group v by v.ActionGroupName into g
                                   select new CostperResponse
                                   {
                                       ActionGroupName = g.Key,
                                       Cost = ((x =&gt; Convert.ToDecimal(x.ResponseROCount))) / ((x =&gt; Convert.ToDecimal(x.ResponseWPAmount)) + (x =&gt; Convert.ToDecimal(x.ResponseWPAmount)))
                                   };
  </code></pre>
  
  <p>the sqlserver query is</p>
  
  <pre><code>     select SUM((cast(isnull(response_ro_count,0) as decimal))/(cast(isnull(response_cp_amount,0)as decimal) + cast(isnull(response_wp_amount,0)as decimal))) , action_group_name from GM_Tempdata where cast(response_ro_count as decimal)&gt;0 group by action_group_name
  </code></pre>