Exemplo n.º 1
0
 /// <summary />
 public NoteDataFactory(DatabaseContext databaseContext, SessionContext sessionContext,
                        IUniqueImageService uniqueImageService)
 {
     _databaseContext    = databaseContext;
     _uniqueImageService = uniqueImageService;
     _sessionContex      = sessionContext;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Конструктор с тремя параметрами: DatabaseContext, UserManager, IUniqueImageService
 /// </summary>
 /// <param name="dbContext"> Контекст базы данных  </param>
 /// <param name="imageService"> Сервис уникальных картинок </param>
 /// <param name="sessionContext"></param>
 public NoteService(DatabaseContext dbContext, IUniqueImageService imageService, SessionContext sessionContext)
 {
     _dbContext      = dbContext;
     _imageService   = imageService;
     _sessionContext = sessionContext;
 }