public ActionResult AddComment() { var service = new AlbumFotoService(); var by = Request["By"].ToString(); var poza = Request["Picture"].ToString(); if (Request["Comentariu"].ToString().Length > 0 && Request["Comentariu"].ToString() != null) { var comment = Request["Comentariu"].ToString(); comment = poza + "@@@" + comment; MemoryStream stream = new MemoryStream(); StreamWriter writer = new StreamWriter(stream); writer.Write(by + ": " + comment); writer.Flush(); stream.Position = 0; service.UploadComment("guest", comment, by, stream); } return(View("Index", service.GetPoze())); }