// CreateServiceGroup create new service group
CreateServiceGroup create new service group
// CreateServiceGroup create new service group
func (spgs *ServiceGroupService) CreateServiceGroup(serviceGroup ServiceGroup) error {
	spgs.ServiceGroupRepos.OpenTransaction()
	serviceGroup.Id = bson.NewObjectId()
	err := spgs.ServiceGroupRepos.CreateServiceGroup(serviceGroup)
	releaseConnection(spgs)
	return err
}
func ( spgs * ServiceGroupService ) CreateServiceGroup ( serviceGroup ServiceGroup ) error { spgs . ServiceGroupRepos . OpenTransaction ( ) serviceGroup . Id = bson . NewObjectId ( ) err := spgs . ServiceGroupRepos . CreateServiceGroup ( serviceGroup ) releaseConnection ( spgs ) return err }
CreateServiceGroup create new service group
CreateServiceGroup create new service group