/// <summary> /// Конструктор класса /// </summary> public ServiceBase() { var context = new DatabaseContext(); roleRepository = new RoleRepository(context); userRepository = new UserRepository(context); accountRepository = new AccountRepository(context); profileRepository = new ProfileRepository(context); }
/// <summary> /// Конструктор класса по умочанию /// </summary> /// <param name="context"></param> public RoleRepository(DatabaseContext context) { unitOfWork = new EFServiceRepository_Helpers.UnitOfWork(context); }