コード例 #1
0
 public static string CheckUserNameAndEmail(string UserName, string EmailID)
 {
     try
     {
         DataTable DS = CRBusinessLogicLayer.ForgorPasswordSendCode(UserName, EmailID);
         if (DS.Rows[0]["USERID"].ToString() != "")
         {
             Login Method = new Login();
             VerificationCode = RandomPasswordGenerator.Generate();
             Method.SendMail(VerificationCode, EmailID);
             return("Please check above Registered Email for verification code");
         }
         return("Please enter valid User Name and Email Id");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }