private bool CheckLoginAndPassword(Admin admin)
        {
            var entities = _repository.GetAllEntities(CollectionName);

            if (entities.Exists(p => p.login == admin.login &&
                                p.password == Eramake.eCryptography.Encrypt(admin.password)))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public List <Guest> GetAll()
        {
            var guests =
                _repository.GetAllEntities(CollectionName);

            return(guests);
        }
Esempio n. 3
0
        public List <ConferenceRoom> GetAll()
        {
            var conferenceRooms =
                _repository.GetAllEntities(CollectionName);

            return(conferenceRooms);
        }
Esempio n. 4
0
        public List <Station> GetAll()
        {
            var stations =
                _repository.GetAllEntities(CollectionName);

            return(stations);
        }
Esempio n. 5
0
        public List <Room> GetAll()
        {
            var rooms =
                _repository.GetAllEntities(CollectionName);

            return(rooms);
        }
Esempio n. 6
0
        public List <Office> GetAll()
        {
            var offices =
                _repository.GetAllEntities(CollectionName);

            return(offices);
        }
Esempio n. 7
0
        public List <Employee> GetAll()
        {
            var employees =
                _repository.GetAllEntities(CollectionName);

            return(employees);
        }