コード例 #1
0
        public new static Envelope <T> Fail(string message, Status status = Status.Failure)
        {
            var _base = MethodResult.Fail(message);

            return(new Envelope <T>(_base));
        }
コード例 #2
0
 public Envelope(MethodResult methodResult, T result) : this(methodResult) {
     this.Result = result;
 }
コード例 #3
0
        public static Envelope <T> Ok(T result, string message = "")
        {
            var _base = MethodResult.Ok(Status.Success, message);

            return(new Envelope <T>(_base, result));
        }
コード例 #4
0
 public Envelope(MethodResult methodResult)
 {
     this.Status  = methodResult.Status;
     this.Success = methodResult.Success;
     this.Message = methodResult.Message;
 }