Input input)
    {
        //We can use Logger, it&#39;s defined in ApplicationService base class.
        Logger.Info(&quot;Updating a task for input: &quot; + input);

        //Retrieving a task entity with given id using standard Get method of repositories.
        var task = _taskRepository.Get(input.TaskId);

        //Updating changed properties of the retrieved task entity.

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

        if (input.AssignedP