Code: Select all
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
session.Log("Begin CustomAction1");
//var enteredSerialNumber = session["PIDKEY"].ToString();
//session.Log(enteredSerialNumber);
return ActionResult.Success;
}
Code: Select all
namespace SerialValidation
{
public class CustomActions
{
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
if (session["PIDKEY"] == "111")
{
session["SERIAL_VALIDATION"] = "TRUE";
return ActionResult.Success;
}
else
{
session["SERIAL_VALIDATION"] = "FALSE";
return ActionResult.Success;
}
}
}
}