Пример #1
0
        /*
         * Method to check if the user has completed the regsitration that is , the  user's infor
         * is stored in the Client table in database after the registration.
         */
        protected void checkUserRegistrationComplete(string userId)
        {
            // connect to the db using EF
            var dbCon = new NoteMgEntities();
            // call store procedure
            var result = dbCon.Client_GetClient(userId);
            // get the  user data foorm the result  of the database
            var user = (from a in result
                        select a).FirstOrDefault();

            if (user == null)
            {
                Response.Redirect("UserRegistration");
            }
            else
            {
                Response.Redirect("~/User/Notes");
            }
        }
Пример #2
0
 public void Dispose()
 {
     //  throw new NotImplementedException();
     this.dbContext = null;
 }