//判断当前系统是否与数据库连通 public async Task <ActionResult> ConnectSqlite(string Sqlitestr) { return(await Task.Run(() => { api.ConnectSqlite(Sqlitestr); return Content(""); })); }