//если внести graduation_year в Human, то надо убрать передачу аргумента public int CalcPlausibility() { Plausibility = 0; if (universities.Any()) { foreach (University university in universities) { if (university.graduation_year != 0 && AnalyzeData.CheckAge(bdate.Year, university.graduation_year)) { Plausibility += 2; } if (!check_university(university, ref plausibility)) { break; } } } check_social(social.twitter, ref plausibility); check_social(social.skype, ref plausibility); check_social(social.livejournal, ref plausibility); check_social(social.instagram, ref plausibility); check_social(social.facebook, ref plausibility); if (city.city_id == 1463) { Plausibility += 4; } else if (city.city_id == 1) { Plausibility++; } else { Plausibility -= 3; } if (contacts.mobile_phone != null) { Plausibility++; } if (contacts.home_phone != null) { Plausibility++; } if (bdate.Year != DateTime.MinValue.Year) { Plausibility++; } if (Plausibility > 40) { Plausibility = 40; } if (Plausibility < 0) { Plausibility = 0; } return(Plausibility); }