Exemplo n.º 1
0
 public ActionResult EditFileInfo([Bind(Include = "FileID, Title, ShortDesc, AccessLevel, ShareList, Keywords")] FileViewModel vm)
 {
     try
     {
         UserStorageService.UpdateFileInfo(vm);
         return(RedirectToAction("Single", new { id = vm.FileID }));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Index", "Response", new { Message = ex.Message, Code = 400, Type = "Error" }));
     }
 }