Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:03:06+00:00 2026-06-18T16:03:06+00:00

I have a site where user A can book a lesson with a teacher,

  • 0

I have a site where user A can book a lesson with a teacher, I then want to have an email sent to the teachers saying user A wants to book a lesson with you etc.

I have postal up and running sending emails without issue,
however, I don’t know how to access the email address of the teacher to send the email.

The email address is saved as part of the built in UserProfile table. I have the teacher’s UserId (as it’s stored in a separate teacher table).

So is there a way to access the teachers email ,searching by UserId?

In any other table I would use t in db.Teacher.find(id) but this doesn’t work within the Account Controller.

This was built using the default MVC4 internet website template using the built in simple membership. Let me know if more information is needed.

I’ve added the following to the AccountController;

private UsersContext db = new UsersContext();

public ActionResult EmailNotification(int id)
{

    var user = from l in db.UserProfiles.Find(id)
                  select l;

}

db.UserProfiles.Find(id) however gives the following error;
Could not find an implementation of the query pattern for source type ‘LessonUp.Models.UserProfile’. ‘Select’ not found.

Which I assume is a result of it not being created through the entity framework?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:03:07+00:00Added an answer on June 18, 2026 at 4:03 pm

    I think your query needs to be something like the following:

    var result = from q in context.UserProfiles
         where q.UserId == id
         select q;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site here where the user can click on some divs. Then
I have a credit system set up on my site where user A can
I have a web site with two routes. Basically the user can do one
I have a page where a user can import data to the site. either
i have a search page in my site, where user can search all the
If I have a table1 with columns table1.user and table1.site, how can I return
Hi I have a site where I use a User Table. I want to
I have 2 site: example.com and exampletwo.com I want that when a user login
I have this example FactoryGirl.define do @site = FactoryGirl.create(:my_site) factory :user do email {
I have a site develop in cakephp 2.3. Into my site a user can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.