Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- route CFG
- routes.MapRoute(
- name: "Default",
- url: "{controller}/{action}/{id}",
- defaults: new { controller = "Abcde", action = "Index", id = UrlParameter.Optional }
- );
- Controller Action
- public ActionResult RisExport(int id, string folderId, bool publicExport)
- {
- bool checkBeschlussExists = false;
- XDocument risdata = CreateDataXml(id);
- try
- {
- ...
- checkBeschlussExists = (bool)cmd.ExecuteScalar();
- }
- if (checkBeschlussExists)
- {
- ....
- }
- //return RedirectToAction("Index", "Abcde");
- return RedirectToRoute("Default", new { Controller = "Abcde", Action = "Index" });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement