public ActionResult Index() { var theModel = GetThePictures(); PhotoRepository r = new PhotoRepository(); r.DislikePhoto(theModel[0].Id, 5); //r.ChangeName(1, "VeryBeautiful"); //ViewBag.H = r.GetId(); return(View(theModel)); }