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

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

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

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

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