public ActionResult Index() { //ConvertAllPicturesToStringData(); IEnumerable <Picture> pictures; using (Repos repo = new Repos()) { pictures = repo.GetAllPictures(); } return(View(pictures)); }