public void deleteDataBase(int id) { string resp = ""; try { connectModel(); systemConfigurationModel.deleteDataBase(id); resp = "{\"type\":\"success\", \"message\":\"Database deleted Successfully.\"}"; } catch (Exception) { resp = "{\"type\":\"danger\", \"message\":\"Can not be deleted the database. Please try again.\"}"; } response(resp); }