Automobile.Mobile.Framework.Data.SqlClient.SetAvailibility C# (CSharp) Method

SetAvailibility() public method

public SetAvailibility ( DeviceInfo device, bool availible ) : void
device DeviceInfo
availible bool
return void
        public void SetAvailibility(DeviceInfo device, bool availible)
        {
            var conn = new SqlConnection(_connectionString);
            conn.Open();
            var sql = new SqlCommand(string.Format("exec mob_set_availibility '{0}', {1}", device.UniqueId, availible ? 1 : 0), conn);
            sql.ExecuteNonQuery();
            conn.Close();
        }