public ActionResult ImportFiles()
        {
            IFileSystemRepo fsr = new FileSystemRepo();
            IStarSystemRepo ssr = new StarSystemRepo();
            var files = Request.Files.AllKeys.Select(fileName => Request.Files[fileName]).Where(file => file.ContentLength > 0).ToList();
            List<string> pathNames = new List<string>();
            foreach (var file in files)
            {
                var fileName = Guid.NewGuid() + Path.GetExtension(file.FileName);
                var virtualPath = "~/Content/netlogs/" + DateTime.Today.ToString("MMddyyyy");
                var subPath = Server.MapPath(virtualPath);
                if (!Directory.Exists(subPath))
                {
                    Directory.CreateDirectory(subPath);
                }
                var path = Path.Combine(subPath, fileName);
                try
                {
                    file.SaveAs(path);
                }
                catch (Exception e)
                {
                    continue;
                }

                fsr.SaveFileData(Path.Combine(virtualPath.Replace("~/", "/").Replace("\\", "/"), fileName), fileName);
                pathNames.Add(path);
            }
            foreach (var path in pathNames)
            {
                List<NetLog> nlList =
                    NetLogTranslator.RawNetLogToNetLogs(path)
                        .GroupBy(nl => nl.SystemName)
                        .Select(lst => lst.First()).ToList();
                foreach (var nl in nlList)
                {
                    var ssvm = new StarSystemViewModel
                    {
                        Name = nl.SystemName,
                        Uploader = User.Identity.Name
                    };
                    ssr.Create(ssvm);
                }
            }
            return Json(new { Message = string.Empty });
        }
        public ActionResult UploadFiles()
        {
            var files = Request.Files.AllKeys.Select(fileName => Request.Files[fileName]).Where(file => file.ContentLength > 0).ToList();

            foreach (var file in files)
            {
                var fileName = Guid.NewGuid() + Path.GetExtension(file.FileName);
                var virtualPath = "~/Content/img/" + DateTime.Today.ToString("MMddyyyy");
                var subPath = Server.MapPath(virtualPath);
                if (!Directory.Exists(subPath))
                {
                    Directory.CreateDirectory(subPath);
                }
                var path = Path.Combine(subPath, fileName);
                try
                {
                    file.SaveAs(path);
                }
                catch (Exception e)
                {
                    continue;
                }
                IFileSystemRepo fsr = new FileSystemRepo();
                fsr.SaveFileData(Path.Combine(virtualPath.Replace("~/", "/").Replace("\\", "/"), fileName), fileName);
            }
            return Json(new { Message = string.Empty});
        }