Saturday, April 3, 2010

find user record by username

Find user records by their asp.net usernames

 public Donor GetDonorByUserName(string UserName)
    {
        return db.Donors.SingleOrDefault(i => i.UserName == UserName);
    }

No comments:

Post a Comment