Ejemplo n.º 1
0
        public async Task <IActionResult> OnPostGenerateTestDataAsync(int count, bool totalDay)
        {
            await ParkDatabaseInitializer.GenerateTestDatasAsync(ParkDB, count, () => totalDay?DateTime.Today.AddHours(20) : DateTime.Now);

            ShowNotify("操作成功");
            return(UIHelper.Result());
        }
        public async Task <IActionResult> OnPostGenerateTestDataAsync()
        {
            await ParkDatabaseInitializer.GenerateTestDatasAsync(ParkDB);

            ShowNotify("操作成功");
            return(UIHelper.Result());
        }