Result/ResultSuccess/Result.cs
/// <summary>
/// Error result with error messages, error identifier and message params.
/// </summary>
/// <param name="generalErrorMessage">General error message.</param>
/// <param name="detailErrorMessage">Detail error message.</param>
/// <param name="errorId">Error identifier.</param>
/// <param name="messageParams">Message params.</param>
/// <returns>Error result.</returns>
Error result with error messages, error identifier and message params.
Error result with error messages error identifier and message params .
public static Result<T> Error(string generalErrorMessage, string detailErrorMessage, int? errorId, IReadOnlyDictionary<string, object> messageParams = null)
    {
        Error error = Errors.Error.CreateError(generalErrorMessage, detailErrorMessage, errorId, messageParams);
        return new Result<T> { ErrorObj = error };
    }
public static Result < T > Error ( string generalErrorMessage , string detailErrorMessage , int ? errorId , IReadOnlyDictionary < string , object > messageParams = null ) { Error error = Errors . Error . CreateError ( generalErrorMessage , detailErrorMessage , errorId , messageParams ) ; return new Result < T > { ErrorObj = error } ; }
Error result with error messages, error identifier and message params.
Error result with error messages error identifier and message params .
None
generalErrorMessage
string
General error message.
General error message .
detailErrorMessage
string
Detail error message.
Detail error message .
errorId
int?
None
messageParams
IReadOnlyDictionary<string, object>
None