Beispiel #1
0
        public static List <ApiGetStdDetailsByTracerQuestionReturnModel> GetStdDetailsByTracerQuestion(int?tracerCustomId, int?tracerResponseId, int?tracerQuestionId, bool?isGuestAccess)
        {
            List <ApiGetStdDetailsByTracerQuestionReturnModel> _result;

            using (var db = new Data.DBMEdition01Context())
            {
                _result = db.ApiGetStdDetailsByTracerQuestion(tracerCustomId, tracerResponseId, tracerQuestionId, isGuestAccess);
            }

            return(_result);
        }
Beispiel #2
0
        public static string GetAllsStdsByTracerQuestion(int?tracerCustomId, int?tracerResponseId, int?tracerQuestionId, bool?isGuestAccess)
        {
            List <ApiGetStdDetailsByTracerQuestionReturnModel> _dbResult;

            string _result = string.Empty;

            using (var db = new Data.DBMEdition01Context())
            {
                _dbResult = db.ApiGetStdDetailsByTracerQuestion(tracerCustomId, tracerResponseId, tracerQuestionId, isGuestAccess);
            }

            foreach (var item in _dbResult)
            {
                _result = _result.Length > 0 ? _result + ", " + item.StandardLabel : item.StandardLabel;
            }

            return(_result);
        }