Exemple #1
0
        private void AddMedicamentsEntities2(Prescription prescription)
        {
            var medicament = new Medicament()
            {
                //IdMedicament = 2,
                Name        = "Eurespal",
                Type        = "Liquid",
                Description = "Throat treatment"
            };
            var mediacamentPrescription = new MedicamentPrescription()
            {
                Medicament   = medicament,
                Prescription = prescription,
                Dose         = 10,
                Details      = "Not necessary"
            };

            Medicaments.Add(medicament);
            MedicamentPrescriptions.Add(mediacamentPrescription);
        }
Exemple #2
0
        private void AddMedicamentsEntities1(Prescription prescription)
        {
            var medicament = new Medicament()
            {
                //IdMedicament = 1,
                Name        = "Paracetamol",
                Type        = "Pill",
                Description = "Headache"
            };
            var mediacamentPrescription = new MedicamentPrescription()
            {
                Medicament   = medicament,
                Prescription = prescription,
                Dose         = 20,
                Details      = "Obligatory"
            };

            Medicaments.Add(medicament);
            MedicamentPrescriptions.Add(mediacamentPrescription);
        }