Ejemplo n.º 1
0
        // GET: specialties/Create
        public ActionResult Add()
        {
            VM_Specialties special = new VM_Specialties();
            var            auth_id = User.Identity.GetUserId();
            var            docId   = db.doctors.Where(s => s.userId == auth_id).Select(s => s.userId).FirstOrDefault();

            special.ListSpecialties       = SpecialtyService.GetAllSpecialty();
            special.ListDoctorSpecialties = SpecialtyService.GetAllSpecialtyByDocId(docId);
            return(View(special));
        }