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())); }
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())); }
// // GET: /Home/ public ActionResult Index() { var service = new AlbumFotoService(); return(View(service.Get_Picture())); }