public static MothersRepository GetMothersRepository(IUnitOfWork unitOfWork) { var repository = new MothersRepository(); repository.UnitOfWork = unitOfWork; return repository; }
public static MothersRepository GetMothersRepository() { var repository = new MothersRepository(); repository.UnitOfWork = GetUnitOfWork(); return repository; }