Example #1
0
        public static MemeberRepository GetMemeberRepository(IUnitOfWork unitOfWork)
        {
            var repository = new MemeberRepository();

            repository.UnitOfWork = unitOfWork;
            return(repository);
        }
Example #2
0
        public static MemeberRepository GetMemeberRepository()
        {
            var repository = new MemeberRepository();

            repository.UnitOfWork = GetUnitOfWork();
            return(repository);
        }
 public MemberService(IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _MemberRep  = new MemeberRepository(unitOfWork);
     _ZipCodeRep = new ZipCodeRepository(unitOfWork);
     ReturnModel = new PublicMethodResult();
 }