Ejemplo n.º 1
0
        public ActionResult Detail(int id)
        {
            ViewBag.ActiveMenu = "specialist-index";
            var result = _specialistService.Get(id);

            ViewData["Doctors"] = _doctorService.GetAll().ToList();
            ViewData["Types"]   = _specialistTypeService.GetAll().ToList();
            return(View(result));
        }
        // GET: Admin/Specialists
        public ActionResult Index()
        {
            ViewBag.ActiveMenu = "specialist-type-index";
            var result = _specialistTypeService.GetAll();

            if (TempData["Success"] != null)
            {
                ViewBag.Success = TempData["Success"];
            }
            if (TempData["Message"] != null)
            {
                ViewBag.Message = TempData["Message"];
            }

            return(View(result));
        }