Advertisement
Guest User

Untitled

a guest
Jun 12th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. route CFG
  2.  
  3. routes.MapRoute(
  4. name: "Default",
  5. url: "{controller}/{action}/{id}",
  6. defaults: new { controller = "Abcde", action = "Index", id = UrlParameter.Optional }
  7. );
  8.  
  9. Controller Action
  10.  
  11. public ActionResult RisExport(int id, string folderId, bool publicExport)
  12. {
  13. bool checkBeschlussExists = false;
  14.  
  15. XDocument risdata = CreateDataXml(id);
  16.  
  17. try
  18. {
  19. ...
  20. checkBeschlussExists = (bool)cmd.ExecuteScalar();
  21.  
  22. }
  23.  
  24.  
  25. if (checkBeschlussExists)
  26. {
  27. ....
  28. }
  29.  
  30. //return RedirectToAction("Index", "Abcde");
  31. return RedirectToRoute("Default", new { Controller = "Abcde", Action = "Index" });
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement