Beispiel #1
0
 public ActionResult Edit([Bind(Include = "id,resourceAddress,key,image,title,code,context,result")] Instance instance,
                          HttpPostedFileBase file)
 {
     if (ModelState.IsValid)
     {
         if (customService.SaveFile(file))
         {
             instance.resourceAddress = file.FileName;
         }
         instanceService.ModifyInstance(instance);
         return(RedirectToAction("Index"));
     }
     return(View(instance));
 }