public ActionResult ViewNurses()
        {
            if (Convert.ToString(Session["key"]) != "admin")
            {
                return(RedirectToAction("Login", "Home"));
            }

            Admin_Api adminGetAllDoctorsApi = new Admin_Api();

            var model = adminGetAllDoctorsApi.GetAllNurses();

            if (model != null)
            {
                return(View("~/Views/Administrator/AdminViewNurses.cshtml", model));
            }

            return(View("~/Views/Error.cshtml"));
        }
        public ActionResult GetRoleDetails(NotificationsModel notification)
        {
            if (Convert.ToString(Session["key"]) != "admin")
            {
                return(RedirectToAction("Login", "Home"));
            }

            Admin_Api          adminApi = new Admin_Api();
            NotificationsModel model    = new NotificationsModel();

            ViewBag.dropdownModel = null;

            if (notification.Notifications.Equals("Doctors"))
            {
                var persons = adminApi.GetAllDoctor();
                foreach (var p in persons)
                {
                    model.personDetails.Add(new SelectListItem {
                        Text  = p.firstName,
                        Value = Convert.ToString(p.pid)
                    });
                }
                ViewBag.dropdownModel = "Doctors";
            }
            else if (notification.Notifications.Equals("Patients"))
            {
                var persons = adminApi.GetAllPatients();
                foreach (var p in persons)
                {
                    model.personDetails.Add(new SelectListItem
                    {
                        Text  = p.firstName,
                        Value = Convert.ToString(p.pid)
                    });
                }
                ViewBag.dropdownModel = "Patients";
            }
            else if (notification.Notifications.Equals("Nurses"))
            {
                var persons = adminApi.GetAllNurses();
                foreach (var p in persons)
                {
                    model.personDetails.Add(new SelectListItem
                    {
                        Text  = p.firstName,
                        Value = Convert.ToString(p.pid)
                    });
                }
                ViewBag.dropdownModel = "Nurses";
            }
            else if (notification.Notifications.Equals("LabIncharges"))
            {
                var persons = adminApi.GetAllLabIncharges();
                foreach (var p in persons)
                {
                    model.personDetails.Add(new SelectListItem
                    {
                        Text  = p.firstName,
                        Value = Convert.ToString(p.pid)
                    });
                }
                ViewBag.dropdownModel = "LabIncharges";
            }

            return(View("~/Views/Administrator/AdminAddNotifications.cshtml", model));
        }