private List <EmployeeContact> GetEmployeeContacts(string userID) { var userContactList = new List <EmployeeContact>(); var sqlParams = new Dictionary <string, object> { { "@КодСотрудника", userID }, { "@КодТелефоннойСтанцииЗвонящего", "" } }; using (var dbReader = new DBReader(SQLQueries.SP_Сотрудники_Контакты, CommandType.StoredProcedure, CN, sqlParams)) { if (dbReader.HasRows) { while (dbReader.Read()) { var tempUserContact = new EmployeeContact(); tempUserContact.LoadFromDbReader(dbReader); userContactList.Add(tempUserContact); } } } return(userContactList); }