icationService class.
        Logger.Info(&quot;Creating a task for input: &quot; + input);

        //Creating a new Task entity with given input&#39;s properties
        var task = new Task { Description = input.Description };

        if (input.AssignedPersonId.HasValue)
        {
            task.AssignedPersonId = input.AssignedPersonId.Value;
        }

        //Saving entity with standard Insert method of repositories.
        _taskRepository.Insert(task);
    }
}</pre>

<p><strong>TaskAppService</s