Beispiel #1
0
        public ActionResult AddComment(string user, string comment, string img)
        {
            var service = new AlbumFotoService();

            if (comment != "" && img != "" && user != "")
            {
                service.AddComment(user, comment, img);
            }
            return(View("Index", service.Get_Picture()));
        }
Beispiel #2
0
        public ActionResult IncarcaPoza(HttpPostedFileBase file)
        {
            var service = new AlbumFotoService();

            if (file != null && file.ContentLength > 0)
            {
                service.Load_Picture("guest", file.FileName, file.InputStream);
            }

            return(View("Index", service.Get_Picture()));
        }
Beispiel #3
0
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var service = new AlbumFotoService();

            return(View(service.Get_Picture()));
        }