public Task <int> Handle(NewObserverRequest message, CancellationToken token)
        {
            var id       = GetMaxIdObserver();
            var observer = new Observer
            {
                Id    = id,
                IdNgo = message.IdOng,
                Phone = message.NumarTelefon,
                Name  = message.Nume,
                Pin   = _hashService.GetHash(message.PIN)
            };

            _context.Observers.Add(observer);
            return(_context.SaveChangesAsync());
        }
        public Task <int> Handle(NewObserverRequest message)
        {
            var id       = GetMaxIdObserver();
            var observer = new Observator
            {
                IdObservator = id,
                IdOng        = message.IdOng,
                NumarTelefon = message.NumarTelefon,
                NumeIntreg   = message.Nume,
                Pin          = _hashService.GetHash(message.PIN)
            };

            _context.Observator.Add(observer);
            return(_context.SaveChangesAsync());
        }