Ejemplo n.º 1
0
        public IHttpActionResult VerifyEmployee(string id, PasswordConfirmation password)
        {
            string message = VerifyPasswords.Password(password);

            if (message == "Successfull")
            {
                CallStoredProc.RunAddUserInfo(password, id);
                return(Ok("Verified Successfully"));
            }
            else
            {
                return(Ok("Verification Not Successful"));
            }
        }
Ejemplo n.º 2
0
 public IHttpActionResult VerifyEmployee(string id, PasswordConfirmation password)
 {
     try
     {
         id = Encode.Base64Decode(id);
         string message = VerifyPasswords.Password(password);
         if (message == "Successfull")
         {
             CallStoredProc.RunAddUserInfo(password, id);
             return(Ok("Verified Successfully"));
         }
         else
         {
             return(Ok("Verification Not Successful"));
         }
     }
     catch (Exception ex)
     {
         LogFile.WriteLog(ex);
         return(BadRequest());
     }
 }