Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Email_Out_ProfileDetailsModel
- {
- public string Profile_Name { get; set; }
- public string Profile_Email { get; set; }
- public string Comments { get; set; }
- }
- public ActionResult Index()
- {
- var query = FROM c IN dbo.Email_Out_Profile
- SELECT new Email_Out_ProfileModel
- {
- Profile_Name=c.Profile_Name,
- Profile_Email=c.Profile_Email,
- Comments=c.Comments,
- };
- return View(query.First());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement