public Package(Status status, T data, int code = 0, TypeError type = default) { Status = status; Data = data; Code = code; Type = type.ToString(); }
public String GetMessageError(Int32?errorId, TypeError type) { String message = configuration.GetSection($"{type.ToString()}:{errorId}").Value; if (String.IsNullOrEmpty(message)) { message = $"Unhandled error. {errorId}"; } return(message); }