Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netojoa/81485de8caa1b1587bd0615cf62b713c to your computer and use it in GitHub Desktop.
Save netojoa/81485de8caa1b1587bd0615cf62b713c to your computer and use it in GitHub Desktop.
public class CustomAction : SubmitActionBase<string>
{
public CustomAction(ISubmitActionData submitActionData) : base(submitActionData)
{
}
protected override bool Execute(string data, FormSubmitContext formSubmitContext)
{
// Some code here
return true;
}
protected override bool TryParse(string value, out string target)
{
target = string.Empty;
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment