public ActionResult AddComment(Guid id, string photoComment) { //var p = photos.FirstOrDefault(x => x.PhotoID == id); //p.PhotoComment.Add(new Comments { CommentOnPicture = photoComment }); var photo = photoRepo.AddCommentToPhoto(id, photoComment); var photos = PhotoModelMapper.ModelToEntity(photo); return(PartialView("IndexPartial", photos)); }