public async Task <JsonResult> DelDatabaseDeploy(int id) { var t = typeof(ECodesTypeId); //删除时先判断产品数据库对应(ProdDBDeploy)中是否有对应数据 var total = await prodRepo.GetProdDBDeployCountByDBIDAsync(id); if (total > 0) { return(Json(new { isOk = false, msg = "先删除产品数据库对应数据" })); } var result = await serverRepo.DelDatabaseDeploy(id); return(Json(new { isOk = result })); }