dateTaskInput</strong>:</p>

<pre lang="cs">
public class UpdateTaskInput : ICustomValidate
{
    [Range(1, long.MaxValue)]
    public long TaskId { get; set; }

    public int? AssignedPersonId { get; set; }

    public TaskState? State { get; set; }

    public void AddValidationErrors(List&lt;ValidationResult&gt; results)
    {
        if (AssignedPersonId == null &amp;&amp; State == null)
        {
            results.Add(new ValidationResult(&quot;Both of AssignedPersonId and State can not be null in o