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

            return(View("Comentarii", service.GetComments(poza)));
        }
예제 #2
0
 public ActionResult ViewComments(string pictureName)
 {
     try
     {
         var service = new AlbumFotoService();
         return(View(service.GetComments(pictureName)));
     }
     catch
     {
         return(RedirectToAction("Index"));
     }
 }
예제 #3
0
        public ActionResult ViewComments(string picture_name)
        {
            var foto_service = new AlbumFotoService();

            return(View(foto_service.GetComments(picture_name)));
        }