private void btnAct_Clicked_out(object sender, EventArgs e) { string varCheckOut = (sender as Button).ClassId; RestService.Check(int.Parse(varCheckOut)); }