public static void UpdateFriendlyLinks() { FriendlyLinkService friendlyLinkService = new FriendlyLinkService(); friendlyLinks = friendlyLinkService.GetFriendlyLinks(); }
public ActionResult Index() { if (Session["UserId"] == null) { return Redirect("/admin/login"); } FriendlyLinkModel model = new FriendlyLinkModel(); FriendlyLinkService friendlyLinkService = new FriendlyLinkService(); model.FriendlyLinks = friendlyLinkService.GetFriendlyLinks(); return View(model); }