Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class Email_Out_ProfileDetailsModel
  2. {
  3. public string Profile_Name { get; set; }
  4. public string Profile_Email { get; set; }
  5. public string Comments { get; set; }
  6. }
  7.  
  8. public ActionResult Index()
  9. {
  10. var query = FROM c IN dbo.Email_Out_Profile
  11. SELECT new Email_Out_ProfileModel
  12. {
  13. Profile_Name=c.Profile_Name,
  14. Profile_Email=c.Profile_Email,
  15. Comments=c.Comments,
  16. };
  17. return View(query.First());
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement