Esempio n. 1
0
        public static EntityOperationResult <T> Success(T entity)
        {
            var result = new EntityOperationResult <T>(entity);

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

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

            return(result);
        }