コード例 #1
0
        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));
        }