예제 #1
0
        public static EntityOperationResult <T> Success(T entity)
        {
            var result = new EntityOperationResult <T>(entity);

            result.IsSuccess = true;
            return(result);
        }
예제 #2
0
        public static EntityOperationResult <T> Failure()
        {
            var result = new EntityOperationResult <T>();

            result.IsSuccess = false;
            result.Errors    = new string[0];

            return(result);
        }