Esempio n. 1
0
        public void CreateTherapy(int AnamnesisId, int TherapyId, String Description)
        {
            List <Model.Therapy> therapies = GetAllTherapy();

            Model.Therapy th = new Model.Therapy(AnamnesisId, TherapyId, Description);
            therapies.Add(th);
            therapyRepository.Save(therapies);
        }
        public void CreateDynamicEquipment(int dynamicEquipmentId, int quantity, String name)
        {
            List <Model.DynamicEquipment> equipments = GetAllDynamicEquipments();

            Model.DynamicEquipment newEquipment = new Model.DynamicEquipment(dynamicEquipmentId,
                                                                             quantity, name);
            equipments.Add(newEquipment);
            dynamicEquipmentRepository.Save(equipments);
        }