Skip to content

The UpdateAsync method signature change from void to Model? requires careful consideration. Ensure all callers handle the nullable return value correctly, particularly in error scenarios where null might be returned. #27

Description

@mmeents

The UpdateAsync method signature change from void to Model? requires careful consideration. Ensure all callers handle the nullable return value correctly, particularly in error scenarios where null might be returned.

      var updatedModel = await GetByIdWithChildrenAsync(model.Id, 2, cancellationToken);
      return updatedModel ?? model;

Originally posted by @Copilot in #24 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions