void EditClub(object parameter) { if (!ValidateParams(parameter)) { ShowInfoWindow("Podaj poprawne dane"); return; } var values = (object[])parameter; string newName = values[0].ToString(); StadiumViewModel newStadium = (StadiumViewModel)values[1]; RecordViewModel newRecord = (RecordViewModel)values[2]; ClubViewModel currentClub = (ClubViewModel)values[3]; if (clubService.EditClub(newName, newStadium.ID, newRecord.ID, currentClub.ID)) { RefereshAll(); } }