Пример #1
0
        //[Route("Edit", Name ="CreateShortURLPost")]
        public ActionResult Edit(URL model)
        {
            model.ShortURL = _homeService.CreateURL(model.OriginalURL.ToLower());

            var savedUrl = new URL();

            savedUrl = _homeService.LoadUrlToDatabase(model);

            return(View(savedUrl));
        }