public ActionResult GetLink() { var service = new AlbumFotoService(); var poza = Request["Picture"].ToString(); return(View("Link", service.GetLink(poza))); }
public ActionResult GetLink(string pic_name) { var service = new AlbumFotoService(); string link = service.GetLink(pic_name); ViewData["LINK"] = link; return(View()); }
public ActionResult GetLink() { var service = new AlbumFotoService(); var poza = Request["picName"].ToString(); string link = service.GetLink(poza); ViewData["LINK"] = link; return(View()); }
public ActionResult GetLink(string pictureName) { try { var service = new AlbumFotoService(); string link = service.GetLink(pictureName); ViewData["LINK"] = link; return(View()); } catch { return(RedirectToAction("Index")); } }