Example #1
0
        public ActionResult GetLink()
        {
            var service = new AlbumFotoService();
            var poza    = Request["Picture"].ToString();

            return(View("Link", service.GetLink(poza)));
        }
Example #2
0
        public ActionResult GetLink(string pic_name)
        {
            var    service = new AlbumFotoService();
            string link    = service.GetLink(pic_name);

            ViewData["LINK"] = link;
            return(View());
        }
Example #3
0
        public ActionResult GetLink()
        {
            var    service = new AlbumFotoService();
            var    poza    = Request["picName"].ToString();
            string link    = service.GetLink(poza);

            ViewData["LINK"] = link;
            return(View());
        }
Example #4
0
 public ActionResult GetLink(string pictureName)
 {
     try
     {
         var    service = new AlbumFotoService();
         string link    = service.GetLink(pictureName);
         ViewData["LINK"] = link;
         return(View());
     }
     catch
     {
         return(RedirectToAction("Index"));
     }
 }