예제 #1
0
        public DomainResponse AddPath(Path path, Limit limit)
        {
            var enableToAddPaht = Limits.Contain(limit) && !limit.HasPath();

            if (!enableToAddPaht)
            {
                return(DomainResponse.Error());
            }

            limit.AddPath(path);
            return(DomainResponse.Ok());
        }