ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
866 stars 107 forks source link

Suggestion to add public static Result<T> Success(T value, string message) #42

Closed ShadyNagy closed 3 years ago

ShadyNagy commented 4 years ago

@ardalis

public static Result<T> Success(T value, string message)

We can add another method for Success so we can send a message with the value. That will help in client-side applications so we send messages in success also as users can change this message from the backend. If you agree I can make PR for it.

ardalis commented 3 years ago

Sure this could be useful as long as it's optional.