예제 #1
0
        public ActionResult DetailDoctor(string docId)
        {
            var consult = _consultingRepository.CheckUserId(User.Identity.GetUserId());

            if (consult == null)
            {
                var data = _doctorProfileRepository.Find(docId);
                ViewBag.consultings = _consultingRepository.GetAllForBook(docId);
                ViewBag.lstCatePost = _postRepository.GetPost_Category();
                return(View(data));
            }
            else
            {
                return(RedirectToAction("Index", "Consulting"));
            }
        }