Esempio n. 1
0
        public int GetNumberOfParticipants(int idRegist)
        {
            try
            {
                using (var connect = new Connect())
                {
                    SqlConnection sqlconn     = connect.GetConnection();
                    var           partiMapper = new ParticipantDataMapper(sqlconn);

                    return(partiMapper.GetCountParticipants(idRegist));
                }
            }
            catch (Exception exception)
            {
                throw new FaultException <ServerError>(new ServerError());
            }
        }
Esempio n. 2
0
        public int GetNumberOfParticipants(int idRegist)
        {
            try
            {
                using (var connect = new Connect())
                {
                    SqlConnection sqlconn = connect.GetConnection();
                    var partiMapper = new ParticipantDataMapper(sqlconn);

                    return partiMapper.GetCountParticipants(idRegist);

                }
            }
            catch (Exception exception)
            {
                throw new FaultException<ServerError>(new ServerError());
            }
        }