public ActionResult Edit(int Id) { DefaultContext db = new DefaultContext(); var Item = db.Galleries.Include("Files").Where(x => x.Id == Id).FirstOrDefault(); ImageEditorViewModel vm = ImageEditorViewModel.getEnity(Item); ViewBag.Action = "Edit"; return(View(vm)); }