Exemple #1
0
        /// <summary>
        /// Account data fetch from DB
        /// </summary>
        /// <returns></returns>
        private List <UserOAuthenticationModel> FetchAllUserData()
        {
            string query = GetSelectQueryString.GetQuery(ConstUserOAuthentication.TableName);
            var    userOAuthentications = _dataLayer.Fetch <UserOAuthenticationModel>(new Fetch(query));

            return(userOAuthentications);
        }
Exemple #2
0
        /// <summary>
        /// Fetcha All Student Data
        /// </summary>
        /// <returns></returns>
        private List <StudentDetailsModel> FetchAllStudentDetails()
        {
            string query          = GetSelectQueryString.GetQuery(ConstStudentDetails.TableName);
            var    studentDetails = _dataLayer.Fetch <StudentDetailsModel>(new Fetch(query));

            return(studentDetails);
        }
Exemple #3
0
        /// <summary>
        /// Account data fetch from DB
        /// </summary>
        /// <returns></returns>
        private UserOAuthenticationModel FetchUserData()
        {
            string query = GetSelectQueryString.GetQuery(ConstUserOAuthentication.TableName);
            var    userOAuthentication = _dataLayer.FetchSingle <UserOAuthenticationModel>(new Fetch(query));

            return(userOAuthentication);
        }
Exemple #4
0
        /// <summary>
        /// Student data fetch from DB
        /// </summary>
        /// <returns></returns>
        private StudentDetailsModel FetchStudentDetailsData()
        {
            string query         = GetSelectQueryString.GetQuery(ConstStudentDetails.TableName);
            var    studentDetail = _dataLayer.FetchSingle <StudentDetailsModel>(new Fetch(query));

            return(studentDetail);
        }