コード例 #1
0
        public static AccountResult <T> Unsuccessful <T>(T data, params string[] errors)
        {
            var baseResult = Unsuccessful(errors);

            return(AccountResult <T> .Parse(baseResult, data, baseResult.Errors));
        }
コード例 #2
0
        public static AccountResult <T> Successful <T>(T data)
        {
            var result = Successful();

            return(AccountResult <T> .Parse(result, data, new List <string>()));
        }