Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public class TestController
  2. {
  3. public ActionResult TestMethod()
  4. {
  5. var model = some LINQ code;
  6. }
  7. }
  8.  
  9. public class testController
  10. {
  11. public string someVal;
  12. public int someInt;
  13.  
  14. public testController()
  15. {
  16. var model = some LINQ code
  17.  
  18. foreach( var str in model )
  19. {
  20. someVal = (string) str.someValueofTable
  21. someInt = (int) str.someIntOfTable
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement