Пример #1
0
        public static void AddUserPackageRelation(Domain.Socioboard.Domain.User user)
        {
            Domain.Socioboard.Domain.UserPackageRelation objUserPackageRelation = new Domain.Socioboard.Domain.UserPackageRelation();
            UserPackageRelationRepository objUserPackageRelationRepository      = new UserPackageRelationRepository();
            PackageRepository             objPackageRepository = new PackageRepository();

            Domain.Socioboard.Domain.Package objPackage = objPackageRepository.getPackageDetails(user.AccountType);
            objUserPackageRelation.Id            = new Guid();
            objUserPackageRelation.PackageId     = objPackage.Id;
            objUserPackageRelation.UserId        = user.Id;
            objUserPackageRelation.PackageStatus = true;

            objUserPackageRelationRepository.AddUserPackageRelation(objUserPackageRelation);
        }
        public static void AddUserPackageRelation(Domain.Socioboard.Domain.User user)
        {
            Domain.Socioboard.Domain.UserPackageRelation objUserPackageRelation = new Domain.Socioboard.Domain.UserPackageRelation();
            UserPackageRelationRepository objUserPackageRelationRepository = new UserPackageRelationRepository();
            PackageRepository objPackageRepository = new PackageRepository();

            Domain.Socioboard.Domain.Package objPackage = objPackageRepository.getPackageDetails(user.AccountType);
            objUserPackageRelation.Id = new Guid();
            objUserPackageRelation.PackageId = objPackage.Id;
            objUserPackageRelation.UserId = user.Id;
            objUserPackageRelation.PackageStatus = true;

            objUserPackageRelationRepository.AddUserPackageRelation(objUserPackageRelation);
        }