Ejemplo n.º 1
0
        public ActionResult AddMedication(MedicationForDoctorViewModel medicationViewModel)
        {
            var UserId   = User.Identity.GetUserId();
            var doctorId = _doctorService.GetIdIdentityDoctor(UserId);

            medicationViewModel.DoctorId = doctorId;
            _patientService.AddMedicationForDoctor(medicationViewModel);

            return(RedirectToAction("Patients"));
        }