public Model_EmailConfirmation(string id)
 {
     var ctx = new DatabaseDataContext();
     string email = "";
     ctx.GetUserEmail(long.Parse(id), ref email);
     ConfirmHash = ctx.GetConfirmationHash(email).SingleOrDefault().strConfirmHash;
 }
예제 #2
0
        public Model_PasswordRequest(string id)
        {
            var IDs = id.Split(',');

            var ctx = new DatabaseDataContext();
            string email = "";
            ctx.GetUserEmail(long.Parse(IDs[0]), ref email);
            RecipientEmail = email;
            Password = IDs[1];
        }