public void ChangePhoneStatus(string phone_code, string status) { int phone_id = int.Parse(phone_code); bool active = false; if (status.Equals("NO")) { active = true; } data_file.ChangePhoneStatus(phone_id, active); }