Exemple #1
0
        static OperationResult()
        {
            var result = new OperationResult();

            OperationErrors.Init(result, OperationErrorCodes.Success);
            SuccessResult = result;
        }
Exemple #2
0
        public static OperationResult Create(OperationErrorCodes code)
        {
            var opResult = new OperationResult();

            OperationErrors.Init(opResult, code);
            return(opResult);
        }