Ejemplo n.º 1
0
        public VMQueue getQueueVM()
        {
            QueueDAL     que   = new QueueDAL();
            List <Queue> ques  = que.Queues.ToList <Queue>();
            VMQueue      vmQue = new VMQueue();

            vmQue.queues = ques;
            //ViewBag.QueueList = ques;
            return(vmQue);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Method to show current doctors.
        /// </summary>
        /// <returns></returns>
        public ActionResult ShowQueues()
        {
            if (verifyAdmin() == false)
            {
                TempData["WarningMessage"] = "Don't go to places you are not allowed.";
                return(RedirectToAction("LogOut", "Home"));
            }
            QueueDAL queDAL = new QueueDAL();
            VMQueue  queVM  = new VMQueue();

            queVM.queues = queDAL.Queues.ToList <Queue>();
            return(View(queVM));
        }