public void AddVaccinationTypes(VaccinationTypesDataModel model)
        {
            VaccinationTypesRepository VaccinationType = new VaccinationTypesRepository();

            VaccinationType.Id   = model.Id;
            VaccinationType.Name = model.Name;

            dataBaseGateWay.Add(VaccinationType);
        }
        public void AddVaccinationReservation(VaccinationReservationDataModel model)
        {
            VaccinationReservationRepository vaccinationReservation = new VaccinationReservationRepository();

            vaccinationReservation.RegistrarId         = (int)model.RegistrarId;
            vaccinationReservation.VaccinationTypeId   = (int)model.VaccinationTypeId;
            vaccinationReservation.ReservationDateTime = model.ReservationDateTime;
            dataBaseGateWay.Add(vaccinationReservation);
        }
Пример #3
0
        public void AddSystemSettings(SystemSettingsDataModel model)
        {
            SystemSettingsRepository SystemSettings = new SystemSettingsRepository();

            SystemSettings.Token            = model.Token;
            SystemSettings.NotificationType = (byte)model.NotificationType;

            dataBaseGateWay.Add(SystemSettings);
        }
Пример #4
0
        public void AddRegistrar(RegistrarsDataModel model)
        {
            RegistrarsRepository Registrar;

            Registrar           = new RegistrarsRepository();
            Registrar.Id        = model.Id;
            Registrar.Name      = model.Name;
            Registrar.Telephone = model.Telephone;
            Registrar.Notified  = model.Notified;

            dataBaseGateWay.Add(Registrar);
        }