/// <summary>
        /// Selects records based on the passed filters as a collection (List) of Enquiry sorted by the sort expression.
        /// </summary>
        public static List <Enquiry> SelectAllDynamicWhere(int?enquiryId, int?courseId, string studentName, Int64?contactNo, string comments, string sortByExpression)
        {
            List <Enquiry> objEnquiryCol = EnquiryDataLayer.SelectAllDynamicWhere(enquiryId, courseId, studentName, contactNo, comments);

            return(SortByExpression(objEnquiryCol, sortByExpression));
        }
 /// <summary>
 /// Selects records based on the passed filters as a collection (List) of Enquiry.
 /// </summary>
 public static List <Enquiry> SelectAllDynamicWhere(int?enquiryId, int?courseId, string studentName, Int64?contactNo, string comments)
 {
     return(EnquiryDataLayer.SelectAllDynamicWhere(enquiryId, courseId, studentName, contactNo, comments));
 }