예제 #1
0
        public ActionResult LinkShorten(LinkShortenModel model)
        {
            var response = Servis().LinkShorten(model.LongLink, model.UserId, model.Password, model.ExpireDate, model.Notification,
                                                model.OneShot, model.status);

            ViewData["KisaLink"] = response;
            return(View(model));
        }
예제 #2
0
        public ActionResult UyeLinkShorten(LinkShortenModel model)
        {
            HttpCookie cookie = Request.Cookies["User"];

            if (cookie == null)
            {
                return(Redirect("/User/SignIn"));
            }
            model.UserId = new Guid(cookie.Value);
            var response = Servis().LinkShorten(model.LongLink, model.UserId, model.Password, model.ExpireDate, model.Notification,
                                                model.OneShot, model.status);

            ViewData["KisaLink"] = response;
            return(View(model));
        }
예제 #3
0
        public ActionResult LinkShorten()
        {
            var model = new LinkShortenModel();

            return(View(model));
        }