I'm Building A Queue System, and want to click a button "Next" "CallAgain" and "NoShow" as of now when I click my "Next" Button, it only shows the first record from my database. I'm quite stuck right now , I want to click the "Next" Button over and over again and show me the next record.

public PartialViewResult BtnNext(int current = 0)
        {
            System.Threading.Thread.Sleep(1000);
            var model = db.Queues.OrderBy(x => x.QueueNumber).Skip(current).Take(1);
            return PartialView("_queuenumber", model);
        }

I expect to click this button over and over again and will show me the next record from the database whenever I click it, thankyou. (super newbie)

0 Answers