Maharudra Gadekar

Maharudra Gadekar

  • 1.4k
  • 367
  • 82.8k

How to marge to sp result in MVC???

Aug 29 2016 2:58 AM
Hello,
 
i am margeing two sp data in mvc....below code
 
 In my controller below code.......
 
 
 
var rs1 = db.sp_storeprocedure1(235).ToList();
var rs2 = db.sp_storeprocedure2(235).ToList();

var data = rs1.Concat(rs2); 
 
but show the error.....
 
'System.Collections.Generic.List<ListBoxdemo.Models.sp_storeprocedure1>' does not contain a definition for 'Concat' and the best extension method overload 'System.Linq.Queryable.Concat<TSource>(System.Linq.IQueryable<TSource>, System.Collections.Generic.IEnumerable<TSource>)' has some invalid arguments C:\Users\Administrator\Desktop\listboxdemo\ListBoxdemo\ListBoxdemo\Controllers\TestController.cs
 
 
how to slows plz help me

 

Answers (2)