예제 #1
0
        /// <summary>
        /// Gets an Survey from a given id.
        /// </summary>
        /// <param name="id"></param>
        /// <returns>Survey</returns>
        public Survey Read(int id)
        {
            if (id <= 0)
            {
                return(null);
            }
            Survey survey = _dataRepository.Read(id);

            if (survey == null)
            {
                return(null);
            }
            return(survey);
        }