public static RoomDTO ToRoomDTO(Room room) { RoomDTO roomDTO = new RoomDTO() { Id = room.Id, IsPrivate = room.IsPrivate, Name = room.Name }; return(roomDTO); }
public static Room ToRoomDAL(RoomDTO roomDTO) { Room roomDAL = new Room() { Id = roomDTO.Id, IsPrivate = roomDTO.IsPrivate, Name = roomDTO.Name }; return(roomDAL); }