Beispiel #1
0
 public bool DeleteDriveById(int driveId)
 {
     using (var context = new CustomZfileDbContext())
     {
         context.Remove(new Drive {
             id = driveId
         });
         context.SaveChanges();
     }
     LocalFileManager.DelDir(BasePath + "/" + driveId.ToString());
     return(true);
 }