Ejemplo n.º 1
0
 public static void UpdateFriendlyLinks()
 {
     FriendlyLinkService friendlyLinkService = new FriendlyLinkService();
     friendlyLinks = friendlyLinkService.GetFriendlyLinks();
 }
Ejemplo n.º 2
0
        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);
        }