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);
        }
Ejemplo n.º 2
0
        public ActionResult MoveFsMedia()
        {
            var count = DataMigrator.MoveFsMedia(Services.DbContext);

            return(Content("Moved and reorganized {0} media files.".FormatInvariant(count)));
        }