// проверка на уникальность заявления private bool CheckIdent(PriemEntities context) { ObjectParameter boolPar = new ObjectParameter("result", typeof(bool)); if (_competition.PersonId != null) { context.CheckAbitIdent(_competition.PersonId, EntryId, boolPar); } return(Convert.ToBoolean(boolPar.Value)); }