Esempio n. 1
0
 public void Save(IAccount account)
 {
     using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
     {
         dataGateway.SaveEntity(account);
     }
 }
Esempio n. 2
0
 public void Save(API.User user)
 {
     using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
     {
         dataGateway.SaveEntity(user);
     }
 }
Esempio n. 3
0
        public void Save(Country country)
        {
            if (!country.IsTransient())
            {
                return;
            }

            using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
            {
                dataGateway.SaveEntity(country);
            }
        }
Esempio n. 4
0
        public void Save(Project project)
        {
            if (!project.IsTransient())
            {
                return;
            }

            using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
            {
                dataGateway.SaveEntity(project);
            }
        }
Esempio n. 5
0
        public void SaveAdministator(Administrator admin)
        {
            if (!admin.IsTransient())
            {
                return;
            }

            using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
            {
                dataGateway.SaveEntity(admin);
            }
        }
Esempio n. 6
0
        public void SaveMembersCount(MembersMetaInfo membersMeta)
        {
            if (!membersMeta.IsTransient())
            {
                return;
            }

            using (IDataGateway dataGateway = this.dataGatewayProvider.GetDataGateway())
            {
                dataGateway.SaveEntity(membersMeta);
            }
        }