I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found
LINQ
4
Posts
2
Posters
29
Views
1
Watching
-
This is my code:
public void ResetPassword(UserModel model, string Name)
{using (var db = new sortit\_internEntities()) { string emailAddress = (from info in db.users where info.name.Equals(model.Name) select info.email).Single(); if (!string.IsNullOrEmpty(emailAddress)) { string confirmationToken = WebSecurity.GeneratePasswordResetToken(model.Name); dynamic email = new Email("ChngPasswordEmail"); email.To = emailAddress; email.UserName = model.Name; email.ConfirmationToken = confirmationToken; email.Send(); } } }
for resetting password for login and yes I am new to MVC, this code is in business layer of MVC for kind Information
-
This is my code:
public void ResetPassword(UserModel model, string Name)
{using (var db = new sortit\_internEntities()) { string emailAddress = (from info in db.users where info.name.Equals(model.Name) select info.email).Single(); if (!string.IsNullOrEmpty(emailAddress)) { string confirmationToken = WebSecurity.GeneratePasswordResetToken(model.Name); dynamic email = new Email("ChngPasswordEmail"); email.To = emailAddress; email.UserName = model.Name; email.ConfirmationToken = confirmationToken; email.Send(); } } }
for resetting password for login and yes I am new to MVC, this code is in business layer of MVC for kind Information
-
You already posted this in the C# forum. Please do not repost the same question in multiple places.
Ya I know but firstly I thought this code will come in Linq and then I realize that this will come in C# that's why...
-
Ya I know but firstly I thought this code will come in Linq and then I realize that this will come in C# that's why...