public ActionResult AdaugaComentariu(string user, string image, string comment) { var service = new AlbumFotoService(); if (string.IsNullOrEmpty(user) == false && string.IsNullOrEmpty(image) == false && string.IsNullOrEmpty(comment) == false) { service.AdaugaComentariu(user, image, comment); } return(View("Index", service.GetPoze())); }
public ActionResult AdaugaComentariu(string text, string poza) { var service = new AlbumFotoService(); if (text != null && text.Length > 0) { service.AdaugaComentariu("guest", poza, text); } return(View("Index", service.GetPoze())); }
public ActionResult AdaugaComentariu(string Text1, string poza, string madeBy) { var service = new AlbumFotoService(); if (Text1 != null && poza != null) { service.AdaugaComentariu(madeBy != "" ? madeBy : "guest", Text1, poza); } return(View("Index", service.GetPoze())); }
public ActionResult AdaugaComentariu() { var textBox = Request["comment_textBox"].ToString(); var service = new AlbumFotoService(); var picture = Request["nume_poza"].ToString(); var madeBy = Request["madeBy"].ToString(); if (textBox.Length != 0) { service.AdaugaComentariu(textBox, picture, madeBy); } return(View("Index", service.GetPoze())); }
public ActionResult AddComments() { var service = new AlbumFotoService(); string User = Request["User"].ToString(); string Comentariu = Request["Comment"].ToString(); string Nume_poza = Request["picture_name"].ToString(); if (!string.IsNullOrEmpty(User) && !string.IsNullOrEmpty(Comentariu)) { service.AdaugaComentariu(User, Comentariu, Nume_poza); } return(View("Index", service.GetPoze())); }