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);
        }
        public List <Guest> GetGuests()
        {
            var guests =
                _repository.GetAllEntities(CollectionName);

            return(guests);
        }
Exemple #3
0
        public List <Office> GetOffices()
        {
            var offices =
                _repository.GetAllEntities(CollectionName);

            return(offices);
        }
        public List <Printer> GetPrinters()
        {
            var desks =
                _repository.GetAllEntities(CollectionName);

            return(desks);
        }
        public List <Employee> GetEmployee()
        {
            var desks =
                _repository.GetAllEntities(CollectionName);

            return(desks);
        }
Exemple #6
0
        public List <Kitchen> GetKitchens()
        {
            var kitchens =
                _repository.GetAllEntities(CollectionName);

            return(kitchens);
        }
        public List <DeskToSend> GetDesks()
        {
            var desks =
                _repository.GetAllEntities(CollectionName);

            var desksToSend = AutoMapper.Mapper.Map <List <Desk>, List <DeskToSend> >(desks);

            return(desksToSend);
        }
Exemple #8
0
        public List <RoomToSend> GetRooms()
        {
            var rooms =
                _repository.GetAllEntities(CollectionName);

            var roomsToSend = AutoMapper.Mapper.Map <List <Room>, List <RoomToSend> >(rooms);

            return(roomsToSend);
        }