Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <a href="@Url.Action("NewList", "Alert")"> New List</a>
  2.  
  3. public ActionResult NewList()
  4. {
  5. Session["new_list"] = "y";
  6. return RedirectToAction("List");
  7. }
  8.  
  9. public ActionResult List()
  10. {
  11. if ((string)Session["new_list"] == "y")
  12. {
  13. //clear session variables, load fresh data from API
  14. }else{
  15. //display blank table. Ask user to input data to retrieve a list
  16. }
  17. ....
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement