public static void AddUserPackageRelation(Domain.Myfashion.Domain.User user) { Domain.Myfashion.Domain.UserPackageRelation objUserPackageRelation = new Domain.Myfashion.Domain.UserPackageRelation(); UserPackageRelationRepository objUserPackageRelationRepository = new UserPackageRelationRepository(); PackageRepository objPackageRepository = new PackageRepository(); Domain.Myfashion.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.Myfashion.Domain.User user) { Domain.Myfashion.Domain.UserPackageRelation objUserPackageRelation = new Domain.Myfashion.Domain.UserPackageRelation(); UserPackageRelationRepository objUserPackageRelationRepository = new UserPackageRelationRepository(); PackageRepository objPackageRepository = new PackageRepository(); Domain.Myfashion.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); }