Beispiel #1
0
        public static Tarrif CreateFromDto(AddTarrifRequestDto request)
        {
            var newInstance = new Tarrif();

            newInstance.ProductCode = request.ProductCode;

            foreach (var price in request.Prices)
            {
                newInstance.AddPrice(Price.CreateFromDto(newInstance, price));
            }

            return(newInstance);
        }