Пример #1
0
        public void MoveDown(OfferDetail detail)
        {
            var nextPos = this.OfferDetails[detail.Position];

            nextPos.Position = detail.Position;
            detail.Position += 1;
            this.OfferDetails.Sort("Position");
        }
Пример #2
0
        public void MoveUp(OfferDetail detail)
        {
            var prevPos = this.OfferDetails[detail.Position - 2];

            prevPos.Position = detail.Position;
            detail.Position -= 1;
            this.OfferDetails.Sort("Position");
        }