public static int AddFlash(FlashInfo flash) { flash.ID = dal.AddFlash(flash); RebuildFile(flash.ID); return(flash.ID); }