Alexandria.Backend.Model.User.ChangePositionInQueue C# (CSharp) Method

ChangePositionInQueue() public method

public ChangePositionInQueue ( Book book, int newPosition ) : void
book Book
newPosition int
return void
        public virtual void ChangePositionInQueue(Book book, int newPosition)
        {
            Queue.Remove(book);
            Queue.Insert(newPosition, book);
            // add any other business logic related to shifting position in queue
        }