Alexandria.Backend.Model.User.ChangePositionInQueue C# (CSharp) Méthode

ChangePositionInQueue() public méthode

public ChangePositionInQueue ( Book book, int newPosition ) : void
book Book
newPosition int
Résultat 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
        }