Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = new List<aDrivingCursor>();
- //execute stored proc 1
- sp.Execute(out aDrivingCursor);
- var b = new List<bDrivingCursor>();
- //execute stored proc 2
- sp2.Execute(out bDrivingCursor);
- foreach (var temp in aDrivingCursor)
- {
- int areaId = 0
- if (b.Any(s => s.Address1 == temp.Address1))
- {
- //This is where I'm having problem with
- areaId = Int32.Parse(b.Where(s => s.Address1 ==a.Address1).FirstOrDefault().Select(o => o.AreaId));
- }
- }
- class aDrivingCursor
- {
- public int Address1 { get; set; }
- }
- class bDrivingCursor
- {
- public int AreaId { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement