Skip to content

ControllerBaseExtensions.SendCreateCommand throws null reference exception when route has multiple parameters #82

Open
@ondrix

Description

@ondrix

Library name and version

  • Kros.MediatR.Extensions 1.1.0

Description

when not using mvc in my webservice ControllerBaseExtensions.SendCommand throws null reference exception because it fails to create resource link url

string url = actionName != null
                  ? controller.Url.Link(actionName, ret) // this returns null
                  : string.Empty;

Steps To Reproduce

Test.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions