コード例 #1
0
        public object GetSummonsRecipientLogin(string socialLastFour, int jurorId)
        {
            try {
                DataCommand command = new DataCommand("spGetSummonsRecipientLogin");
                command.AddParameter("@socialLastFour", socialLastFour);
                command.AddParameter("@jurorId", jurorId);

                DataReader dataReader = command.ExecuteReader();

                object juror = dataReader.Read() ? (object)Juror.GetJuror((int)dataReader.GetInteger("JurorID")) : (object)Json.Nothing;

                command.Close();

                return(juror);
            } catch (Exception e) {
                return(Error.LogError(_logger, e));
            }
        }