public IActionResult CheckDBStatus() { ResponseModel Result = new ResponseModel(); try{ if (Principal.CheckDBStatus(ConfigHelper.ConnectionString)) { Result.HttpStatus = "1"; } else { Result.HttpStatus = "0"; } } catch (Exception ex) { Result.HttpStatus = "0"; } return(Json(Result)); }