public void Seed(SmartObjectContext context) { if (!HostingEnvironment.IsHosted) { return; } // Move the whole media folder to new location at first MoveMediaFolder(); // Reorganize files (root > Storage/{subfolder}) DataMigrator.MoveFsMedia(context); }
public ActionResult MoveFsMedia() { var count = DataMigrator.MoveFsMedia(Services.DbContext); return(Content("Moved and reorganized {0} media files.".FormatInvariant(count))); }