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); }
/// <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)); }