public void editRoom1(RoomVM roomVM, List <int> listdel)
        {
            Room room = new Room();

            _iMapper.Map(roomVM, room);
            room.RoomIdroomtype = roomVM.MapRoomtype.First().Key;
            foreach (StatusTimeVM statusTimeVM in roomVM.ListStatusTime)
            {
                StatusTime statusTime = new StatusTime();
                _iMapper.Map(statusTimeVM, statusTime);
                // Status status = new Status();
                // _iMapper.Map(statusTimeVM.statusVM,status);
                // statusTime.StatimIdstatusNavigation = status;
                statusTime.StatimIdstatus = statusTimeVM.statusVM.IdStatus;
                statusTime.StatimIdroom   = room.IdRoom;
                room.StatusTimes.Add(statusTime);
            }
            try{
                _iRoomDAL.update(room);
                if (listdel.Count != 0)
                {
                    _iStatusTimeDAL.delete(listdel);
                }
            }catch (Exception e) {
                Console.WriteLine(e.Message);
            }
        }