Exemple #1
0
 public UserService(
     UnitOfWork unitOfWork,
     IMapper mapper,
     UserRepository userRepository,
     RoleRepository roleRepository,
     EmailSender emailSender,
     UserTagRepository userTag,
     TagRepository tagRepository)
 {
     _unitOfWork     = unitOfWork;
     _mapper         = mapper;
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _emailSender    = emailSender;
     _userTag        = userTag;
     _tagRepository  = tagRepository;
 }
 public UnitOfWork(Context context)
 {
     _context             = context;
     Appointments         = new AppointmentRepository(_context);
     Calendars            = new CalendarRepository(_context);
     Categories           = new CategoryRepository(_context);
     DaysOff              = new DayOffRepository(_context);
     Experts              = new ExpertRepository(_context);
     Reviews              = new ReviewRepository(_context);
     Tags                 = new TagRepository(_context);
     Users                = new UserRepository(_context);
     WorkDays             = new WorkDayRepository(_context);
     CalendarAppointments = new CalendarAppointmentRepository(_context);
     UserTags             = new UserTagRepository(_context);
     ExpertTags           = new ExpertTagRepository(_context);
     MainFieldTags        = new MainFieldTagRepository(_context);
     UserFavorites        = new UserFavoritesRepository(_context);
 }